feat(SW-2264): Added campaign overview page
Approved-by: Matilda Landström
This commit is contained in:
@@ -1,19 +1,24 @@
|
||||
import { cx } from 'class-variance-authority'
|
||||
import { Typography } from '../Typography'
|
||||
|
||||
import styles from './chip-link.module.css'
|
||||
|
||||
import type { PropsWithChildren } from 'react'
|
||||
import {
|
||||
Link as LinkRAC,
|
||||
LinkProps as LinkRACProps,
|
||||
} from 'react-aria-components'
|
||||
|
||||
export function ChipLink({
|
||||
children,
|
||||
className,
|
||||
...props
|
||||
}: PropsWithChildren<React.AnchorHTMLAttributes<HTMLAnchorElement>>) {
|
||||
}: PropsWithChildren<LinkRACProps>) {
|
||||
return (
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<a {...props} className={[styles.chip, className].join(' ')}>
|
||||
<LinkRAC {...props} className={cx(styles.chip, className)}>
|
||||
{children}
|
||||
</a>
|
||||
</LinkRAC>
|
||||
</Typography>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user