import { LucideIcon } from "lucide-react"; import React from "react"; import { LinkButton } from "src/components/ui/custom/link-button"; import { cn } from "src/lib/utils"; type Variant = "dashed" | "muted" | "none"; type Props = { icon: LucideIcon; title: string; description: string; variant?: Variant; } & ( | { buttonText: string; buttonLink: string } | { buttonText?: never; buttonLink?: never } ); const variantClasses: Record = { dashed: "shadow-xs border border-dashed", muted: "bg-muted", none: "", }; const EmptyState: React.FC = ({ icon: Icon, title: message, description: subMessage, variant = "muted", buttonText, buttonLink, }) => { return (

{message}

{subMessage}

{buttonText && buttonLink && ( {buttonText} )}
); }; export default EmptyState;