import { Typography, type TypographyProps } from "@carrot-kpi/ui"; import { cva, cx } from "class-variance-authority"; import React from "react"; import EmptyIllustration from "../../icons/empty"; const rootStyles = cva( [ "flex", "flex-col", "justify-center", "text-center", "items-center", "gap-6", ], { variants: { vertical: { true: [ "flex-col", "justify-center", "text-center", "text-center", ], false: ["md:flex-row", "md:text-left"], }, }, }, ); interface EmptyProps { title: string; description?: string; vertical?: boolean; titleVariant?: TypographyProps["variant"]; descriptionVariant?: TypographyProps["variant"]; className?: { root?: string; icon?: string; }; } export const Empty = ({ title, description, vertical, titleVariant, descriptionVariant, className, }: EmptyProps) => { return (
{title} {description && ( {description} )}
); };