Files
link-free/src/pages/index.tsx

32 lines
500 B
TypeScript
Raw Normal View History

2021-12-11 01:48:15 -03:00
import { Button } from '../components/Button'
2021-12-10 20:54:28 -03:00
export default function Home() {
2021-12-11 01:48:15 -03:00
const links = [
{
label: 'Home',
href: '#'
},
{
label: 'About',
href: '/about'
},
{
label: 'Contact',
href: '/contact'
}
]
2021-12-10 20:54:28 -03:00
return (
<div>
2021-12-11 01:48:15 -03:00
{links.map(link => (
<>
2021-12-11 12:37:12 -03:00
<Button color="sky" schema="rounded" outline key={link.href}>
2021-12-11 01:48:15 -03:00
{link.label}
</Button>
<br />
</>
))}
2021-12-10 20:54:28 -03:00
</div>
)
}