Files
web/apps/scandic-web/components/Section/Link/index.tsx
Anton Gunnarsson 8518d018f8 Merged in feat/sw-3230-move-link-to-design-system (pull request #2618)
feat(SW-3230): Move Link to design-system

* Move Link to design-system

* Remove comments


Approved-by: Linus Flood
2025-08-12 12:35:20 +00:00

28 lines
674 B
TypeScript

import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import Link from "@scandic-hotels/design-system/Link"
import { linkVariants } from "./variants"
import styles from "./link.module.css"
import type { SectionLinkProps } from "./link"
export default function SectionLink({ link, variant }: SectionLinkProps) {
if (!link) {
return null
}
const classNames = linkVariants({
variant,
})
return (
<Link className={classNames} href={link.href} textDecoration="underline">
{link.text}
<MaterialIcon
icon="arrow_forward"
color="CurrentColor"
className={styles.icon}
/>
</Link>
)
}