Files
omnivore/packages/web/components/elements/InfoLink.tsx
2023-02-27 10:34:12 +08:00

38 lines
865 B
TypeScript

import { Info } from 'phosphor-react'
import { VStack } from '../elements/LayoutPrimitives'
import { theme } from '../tokens/stitches.config'
import { TooltipWrapped } from './Tooltip'
type InfoLinkProps = {
href: string
}
const TooltipStyle = {
backgroundColor: '#F9D354',
color: '#0A0806',
}
export function InfoLink(props: InfoLinkProps): JSX.Element {
return (
<VStack
css={{
marginLeft: '10px',
}}
>
<a
href={props.href}
style={{ textDecoration: 'none', width: '24px', height: '24px' }}
>
<TooltipWrapped
tooltipContent="Learn More"
tooltipSide={'top'}
style={TooltipStyle}
arrowStyles={{ fill: '#F9D354' }}
>
<Info size={24} color={theme.colors.grayText.toString()} />
</TooltipWrapped>
</a>
</VStack>
)
}