"use client"; import type { ReactNode } from "react"; import { AlertTriangle, RotateCw } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { useTranslations } from "@/lib/i18n/context"; import { cn } from "@/lib/utils"; /** * Read-failure card for list / data surfaces. * * Mirrors ``'s shape + tone (AlertTriangle, a title line, a * muted description, an optional Retry button) but renders inside a `Card` so * a list page can tell "load failed" apart from an honest empty state — a * failed query must never fall through to the "no data yet" copy. Defaults are * the generic `common.*` strings so a caller can drop it in with just * `onRetry`; a surface with its own "couldn't load X" string passes it through * `title` / `description`. */ export function QueryErrorCard({ title, description, onRetry, retryLabel, className, }: { title?: ReactNode; description?: ReactNode; onRetry?: () => void; retryLabel?: string; className?: string; }) { const { t } = useTranslations(); return ( ); }