'use client' import * as React from 'react' import Link from 'next/link' import { useTranslations } from 'next-intl' import { Button } from '@/components/ui/button' import { cn } from '@/lib/utils' import { ReceiptText, Users, ArrowLeftRight, Camera, Building2, FileText, Calendar, Plus, type LucideIcon, } from 'lucide-react' import { SupportLink } from '@/components/ui/support-link' interface EmptyStateProps { icon?: LucideIcon title: string description: string actionLabel?: string actionHref?: string onAction?: () => void secondaryActionLabel?: string secondaryActionHref?: string supportHint?: boolean className?: string children?: React.ReactNode } /** * EmptyState: friendly placeholder shown when there is no data. */ export function EmptyState({ icon: Icon, title, description, actionLabel, actionHref, onAction, secondaryActionLabel, secondaryActionHref, supportHint, className, children, }: EmptyStateProps) { const t = useTranslations('empty') return (
{description}
{supportHint && (