Files
omnivore/packages/web/components/elements/InfoLink.tsx

36 lines
845 B
TypeScript

import Link from 'next/link'
import { Info } from 'phosphor-react'
import { Box, 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' }}>
<TooltipWrapped
tooltipContent="Learn More"
tooltipSide={'top'}
style={TooltipStyle}
arrowStyles={{ fill: '#F9D354' }}
>
<Info size={24} color={theme.colors.grayText.toString()} />
</TooltipWrapped>
</a>
</VStack>
)
}