www/components/quick-links.tsx
Paul W. ff03bd50ff
react: fix incorrect use of keys
Signed-off-by: Paul W. <lambdapaul@protonmail.com>
2024-12-06 13:52:40 -05:00

25 lines
455 B
TypeScript

import Link from 'next/link';
import Pages from '../public/external.json';
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>
);
}
export default QuickLinks;