fix(BOOK-436): Added new section component and deprecated the other
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user