import { forwardRef, HTMLAttributes } from "react";
const Card = forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
ref={ref}
className={
"bg-base-0 border-base-300 text-base-800 rounded border shadow-sm " +
className
}
{...props}
/>
),
);
Card.displayName = "Card";
const CardHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
ref={ref}
className={"flex flex-col space-y-1.5 p-6 " + className}
{...props}
/>
),
);
CardHeader.displayName = "CardHeader";
const CardTitle = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
ref={ref}
className={
"text-2xl font-semibold leading-none tracking-tight " + className
}
{...props}
/>
),
);
CardTitle.displayName = "CardTitle";
const CardDescription = forwardRef<
HTMLDivElement,
HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={"text-base-500 text-sm " + className} {...props} />
));
CardDescription.displayName = "CardDescription";
const CardBody = forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={"p-6 pt-0 " + className} {...props} />
));
CardBody.displayName = "CardBody";
const CardFooter = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
({ className, ...props }, ref) => (
<div
ref={ref}
className={"flex items-center gap-4 px-6 pb-6 " + className}
{...props}
/>
),
);
CardFooter.displayName = "CardFooter";
export { Card, CardBody, CardDescription, CardFooter, CardHeader, CardTitle };