import './Link.sass'
// import { A } from '@solidjs/router'

interface Props {
  to: string
  children?: any
  newtab?: boolean
}

export default (props: Props) => {
  return (
    <>
      <a href={props.to} aria-label={`Go to ${props.to}`} target={props.newtab ? '_blank' : ''}>
        {props.children}
      </a>
    </>
  )
}
