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'>
|
2024-02-13 23:01:07 +00:00
|
|
|
<h2>Quick Links</h2>
|
2022-05-15 13:56:45 +00:00
|
|
|
{
|
|
|
|
Object.entries(Pages).map(([title, link], i) => {
|
|
|
|
const extern = link.match(/^http/) && `blue extern` || '';
|
|
|
|
return (
|
2024-02-13 23:01:07 +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;
|