import React, { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react"; import classNames from "./lib/classNames"; import Stack, { CustomStackProps } from "./Stack"; import Typography from "./Typography"; export interface CustomEmptyProps { description?: string; icon?: ReactNode; heading?: string; } export interface EmptyProps extends DetailedHTMLProps, HTMLDivElement>, CustomEmptyProps, CustomStackProps {} export function getEmptyStyles() { const emptyStyles = { base: "text-center p-6 rounded-lg border-2 border-dashed", }; return classNames(emptyStyles.base); } export default function Empty({ description, className, children, heading, icon, ...rest }: EmptyProps) { return ( {icon} {heading && ( {heading} )} {description && ( {description} )} {children} ); }