Link.tsx38 lines · main
1import React from 'react'
2
3// @ts-ignore
4// import LinkStyles from './Link.module.css'
5
6interface Props {
7 children?: React.ReactNode
8 target?: '_blank' | '_self' | '_parent' | '_top' | 'framename'
9 href?: string
10 className?: string
11 style?: React.CSSProperties
12 onClick?: any
13}
14
15function Link({ children, target = '_blank', href, onClick, style }: Props) {
16 // let classes = [
17 // LinkStyles['sbui-typography'],
18 // LinkStyles['sbui-typography-link'],
19 // ]
20 // if (className) {
21 // classes.push(className)
22 // }
23
24 return (
25 <a
26 onClick={onClick}
27 // className={classes.join(' ')}
28 href={href}
29 target={target}
30 rel="noopener noreferrer"
31 style={style}
32 >
33 {children}
34 </a>
35 )
36}
37
38export default Link