/** * BoostMedia AI Content Generator Admin - Card Component * * @package BoostMedia_AI * @license GPL-2.0-or-later */ import type { ReactNode, HTMLAttributes } from 'react' interface CardProps extends HTMLAttributes { children: ReactNode padding?: 'sm' | 'md' | 'lg' | 'none' } interface CardHeaderProps extends HTMLAttributes { children: ReactNode } interface CardTitleProps extends HTMLAttributes { children: ReactNode as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' } interface CardContentProps extends HTMLAttributes { children: ReactNode } interface CardFooterProps extends HTMLAttributes { children: ReactNode } const paddingClasses = { none: '', sm: 'p-4', md: 'p-6', lg: 'p-8', } export function Card({ children, padding = 'md', className = '', ...props }: CardProps) { return (
{children}
) } export function CardHeader({ children, className = '', ...props }: CardHeaderProps) { return (
{children}
) } export function CardTitle({ children, as: Tag = 'h3', className = '', ...props }: CardTitleProps) { return ( {children} ) } export function CardContent({ children, className = '', ...props }: CardContentProps) { return (
{children}
) } export function CardFooter({ children, className = '', ...props }: CardFooterProps) { return (
{children}
) }