2023-02-27 02:34:12 +00:00
|
|
|
import { VStack } from '../elements/LayoutPrimitives'
|
2022-04-06 04:53:32 +00:00
|
|
|
import { theme } from '../tokens/stitches.config'
|
2023-08-01 04:31:12 +00:00
|
|
|
import { EditInfoIcon } from './icons/EditInfoIcon'
|
2022-04-06 04:53:32 +00:00
|
|
|
|
|
|
|
|
type InfoLinkProps = {
|
|
|
|
|
href: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function InfoLink(props: InfoLinkProps): JSX.Element {
|
|
|
|
|
return (
|
2023-01-16 13:57:34 +00:00
|
|
|
<VStack
|
|
|
|
|
css={{
|
|
|
|
|
marginLeft: '10px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
2023-01-18 11:42:55 +00:00
|
|
|
<a
|
|
|
|
|
href={props.href}
|
|
|
|
|
style={{ textDecoration: 'none', width: '24px', height: '24px' }}
|
2023-08-30 04:22:54 +00:00
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer"
|
2024-03-05 02:10:16 +00:00
|
|
|
title="Lean more"
|
2023-01-18 11:42:55 +00:00
|
|
|
>
|
2024-03-05 02:10:16 +00:00
|
|
|
<EditInfoIcon size={24} color={theme.colors.grayText.toString()} />
|
2022-04-06 04:53:32 +00:00
|
|
|
</a>
|
2023-01-16 13:57:34 +00:00
|
|
|
</VStack>
|
2022-04-06 04:53:32 +00:00
|
|
|
)
|
|
|
|
|
}
|