www/components/quick-links.tsx
Paul W. 35d56f5cde
Bump script ver and refactor md metadata gen
Signed-off-by: Paul W. <lambdapaul@protonmail.com>
2023-10-30 00:18:38 -04:00

21 lines
592 B
TypeScript

import Link from 'next/link';
import Pages from '../public/external.json';
function QuickLinks() {
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 (
<Link key={i} href={link} className={`${extern} link button`}>{title}</Link>
);
})
}
</div>
);
}
export default QuickLinks;