"use client"; import { useTranslations } from "next-intl"; /** * EmptyState — FASE-07 UX * * Reusable empty state component for dashboard sections when no data * is available. Provides visual feedback and optional action button. * * Usage: * router.push('/providers/add')} * /> */ interface EmptyStateProps { icon?: string; title?: string; description?: string; actionLabel?: string; onAction?: (() => void) | null; } export default function EmptyState({ icon = "📭", title, description = "", actionLabel = "", onAction = null, }: EmptyStateProps) { const t = useTranslations("common"); const resolvedTitle = title ?? t("nothingHere"); return (

{resolvedTitle}

{description && (

{description}

)} {actionLabel && onAction && ( )}
); }