// frontend\src\components\ui\Card.tsx 'use client' import clsx from 'clsx' import type { PropsWithChildren, ReactNode } from 'react' type CardProps = { header?: ReactNode footer?: ReactNode grayBody?: boolean grayFooter?: boolean edgeToEdgeMobile?: boolean well?: boolean noBodyPadding?: boolean className?: string bodyClassName?: string } export default function Card({ header, footer, grayBody = false, grayFooter = false, edgeToEdgeMobile = false, well = false, noBodyPadding = false, className, bodyClassName, children, }: PropsWithChildren) { const isWell = well return (
{header && (
{header}
)}
{children}
{footer && (
{footer}
)}
) }