2022-04-28 01:55:18 +00:00
|
|
|
import Link from 'next/link';
|
2023-10-30 04:18:38 +00:00
|
|
|
import Pages from '../public/external.json';
|
2022-04-28 01:55:18 +00:00
|
|
|
|
|
|
|
function QuickLinks() {
|
2022-05-15 13:56:45 +00:00
|
|
|
return (
|
|
|
|
<div className='block'>
|
|
|
|
<div className='h2'>Quick Links</div>
|
|
|
|
{
|
|
|
|
Object.entries(Pages).map(([title, link], i) => {
|
|
|
|
const extern = link.match(/^http/) && `blue extern` || '';
|
|
|
|
return (
|
2023-09-20 04:25:34 +00:00
|
|
|
<Link key={i} href={link} className={`${extern} link button`}>{title}</Link>
|
2022-05-15 13:56:45 +00:00
|
|
|
);
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
);
|
2022-04-28 01:55:18 +00:00
|
|
|
}
|
|
|
|
|
2023-09-20 04:25:34 +00:00
|
|
|
export default QuickLinks;
|