2022-04-27 21:55:18 -04:00
|
|
|
import Link from 'next/link';
|
2023-10-30 00:18:38 -04:00
|
|
|
import Pages from '../public/external.json';
|
2022-04-27 21:55:18 -04:00
|
|
|
|
|
|
|
function QuickLinks() {
|
2024-12-06 13:52:40 -05:00
|
|
|
return (
|
|
|
|
<div className='block'>
|
|
|
|
{
|
|
|
|
Object.entries(Pages).map(([title, link]) => {
|
|
|
|
const extern = link.match(/^http/) && `blue extern` || '';
|
|
|
|
return (
|
|
|
|
<Link
|
|
|
|
key={link}
|
|
|
|
href={link}
|
|
|
|
className={`${extern} link button`}>
|
|
|
|
{title}
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
);
|
2022-04-27 21:55:18 -04:00
|
|
|
}
|
|
|
|
|
2023-09-20 00:25:34 -04:00
|
|
|
export default QuickLinks;
|