import type { ReactNode } from 'react' import clsx from 'clsx' import ConsumerButton from '@/components/consumer/ConsumerButton' import CloseCircleIcon from '@/components/icons/CloseCircleIcon' import FileQuestionIcon from '@/components/icons/FileQuestionIcon' interface ConsumerStateProps { actionLabel?: string children?: ReactNode className?: string description?: string icon?: ReactNode title: string variant?: 'empty' | 'error' onAction?: () => void } const ConsumerState = ({ actionLabel, children, className, description, icon, title, variant = 'empty', onAction }: ConsumerStateProps) => { const isError = variant === 'error' return (
{icon ?? (isError ? : )}

{title}

{description ?

{description}

: null}
{actionLabel && onAction ? ( {actionLabel} ) : null} {children}
) } export default ConsumerState