fwt/fwt/components/Link/Link.tsx

16 lines
279 B
TypeScript

// import { prefetch } from 'astro:prefetch'
interface Props {
to: string
children?: any
}
export default (props: Props) => {
return (
<>
<a href={props.to} aria-label={`Go to ${props.to}`} data-astro-prefetch>
{props.children}
</a>
</>
)
}