'use client'
import { forwardRef, HTMLAttributes } from 'react'
import { cn } from '@/utils/helpers'
export interface CardProps extends HTMLAttributes {
variant?: 'default' | 'outlined' | 'elevated'
}
export const Card = forwardRef(
({ className, variant = 'default', children, ...props }, ref) => {
const variants = {
default: 'clay-card',
outlined: 'clay-card border-2',
elevated: 'clay-card shadow-lg',
}
return (
{children}
)
}
)
Card.displayName = 'Card'
export const CardHeader = forwardRef>(
({ className, children, ...props }, ref) => (
{children}
)
)
CardHeader.displayName = 'CardHeader'
export const CardTitle = forwardRef>(
({ className, children, ...props }, ref) => (
{children}
)
)
CardTitle.displayName = 'CardTitle'
export const CardDescription = forwardRef>(
({ className, children, ...props }, ref) => (
{children}
)
)
CardDescription.displayName = 'CardDescription'
export const CardContent = forwardRef>(
({ className, children, ...props }, ref) => (
{children}
)
)
CardContent.displayName = 'CardContent'
export const CardFooter = forwardRef>(
({ className, children, ...props }, ref) => (
{children}
)
)
CardFooter.displayName = 'CardFooter'