fix(BOOK-436): Added new section component and deprecated the other

Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Erik Tiekstra
2025-10-13 08:31:26 +00:00
parent 7bd75f01e4
commit 339e7195dc
34 changed files with 245 additions and 177 deletions

View File

@@ -5,7 +5,13 @@ import { linkVariants } from "./variants"
import styles from "./link.module.css"
import type { SectionLinkProps } from "./link"
import type { VariantProps } from "class-variance-authority"
interface SectionLinkProps
extends React.PropsWithChildren<React.HTMLAttributes<HTMLSpanElement>>,
VariantProps<typeof linkVariants> {
link?: { href: string; text: string }
}
export default function SectionLink({ link, variant }: SectionLinkProps) {
if (!link) {