Initial commit
This commit is contained in:
commit
ec263707c7
80 changed files with 9928 additions and 0 deletions
17
fwt/components/Link.tsx
Normal file
17
fwt/components/Link.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import '../styles/Link.sass'
|
||||
|
||||
interface Props {
|
||||
to: string
|
||||
children?: any
|
||||
newtab?: boolean
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<a href={props.to} aria-label={`Go to ${props.to}`} rel="noopener" target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
|
||||
{props.children}
|
||||
</a>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue