Fix(SW-1711)/(SW-2077): Export icons individually * fix(SW-1711): export icons individually Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
21 lines
570 B
TypeScript
21 lines
570 B
TypeScript
import Link from "next/link"
|
|
|
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
|
|
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
|
|
|
import styles from "./chip.module.css"
|
|
|
|
import type { LinkChipProps } from "./chip"
|
|
|
|
export default function LinkChip({ url, title }: LinkChipProps) {
|
|
return (
|
|
<Caption type="bold" color="burgundy" asChild>
|
|
<Link href={url} className={styles.linkChip}>
|
|
{title}
|
|
<MaterialIcon icon="chevron_right" size={20} color="CurrentColor" />
|
|
</Link>
|
|
</Caption>
|
|
)
|
|
}
|