import { AlertCircle, Inbox } from "lucide-react"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; import { Spinner } from "@/components/ui/spinner"; import { TableCell, TableRow } from "@/components/ui/table"; import { cn } from "@/shared/lib/cn"; export function LoadingState({ className }: { className?: string }) { return (
); } export function TableLoadingRow({ colSpan }: { colSpan: number }) { return ( ); } export function EmptyState({ message }: { message?: string }) { const { t } = useTranslation(); return (

{message ?? t("common.noData")}

); } export function ErrorState({ message, onRetry }: { message: string; onRetry: () => void }) { const { t } = useTranslation(); return (

{message}

); }