www/components/quick-links.tsx

25 lines
455 B
TypeScript
Raw Normal View History

2022-04-27 21:55:18 -04:00
import Link from 'next/link';
import Pages from '../public/external.json';
2022-04-27 21:55:18 -04:00
function QuickLinks() {
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
}
export default QuickLinks;