import Link from 'next/link'
import clsx from 'clsx'
function ChevronRightIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
)
}
export function Card({
as,
className,
children,
}: Omit, 'as' | 'className'> & {
as?: T
className?: string
}) {
let Component = as ?? 'div'
return (
{children}
)
}
Card.Link = function CardLink({
children,
...props
}: React.ComponentPropsWithoutRef) {
return (
<>
{children}
>
)
}
Card.Title = function CardTitle({
as,
href,
children,
}: Omit, 'as' | 'href'> & {
as?: T
href?: string
}) {
let Component = as ?? 'h2'
return (
{href ? {children} : children}
)
}
Card.Description = function CardDescription({
children,
}: {
children: React.ReactNode
}) {
return (
{children}
)
}
Card.Cta = function CardCta({ children }: { children: React.ReactNode }) {
return (
{children}
)
}
Card.Eyebrow = function CardEyebrow({
as,
decorate = false,
className,
children,
...props
}: Omit, 'as' | 'decorate'> & {
as?: T
decorate?: boolean
}) {
let Component = as ?? 'p'
return (
{decorate && (
)}
{children}
)
}