"use client"; import type React from "react"; import { cn } from "@/lib/utils"; type Props = { label?: string; title?: string; rightSlot?: React.ReactNode; className?: string; children: React.ReactNode; }; export const Card = ({ label, title, rightSlot, className, children }: Props) => { return (
{label &&
{label}
} {(title || rightSlot) && (
{title &&
{title}
} {rightSlot &&
{rightSlot}
}
)}
{children}
); } export default Card;