import { LoaderCircleIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useTranslate } from "@/utils/i18n"; interface AttachmentLibraryErrorStateProps { error?: Error; onRetry: () => void; } interface AttachmentLibrarySkeletonGridProps { count?: number; } interface AttachmentLibraryUnusedPanelProps { count: number; isDeleting: boolean; isExpanded: boolean; onDelete: () => void; onToggle: () => void; } export const AttachmentLibrarySkeletonGrid = ({ count = 8 }: AttachmentLibrarySkeletonGridProps) => { return (
{Array.from({ length: count }).map((_, index) => (
))}
); }; export const AttachmentLibraryErrorState = ({ error, onRetry }: AttachmentLibraryErrorStateProps) => { const t = useTranslate(); return (

{error?.message ?? t("attachment-library.errors.load")}

); }; export const AttachmentLibraryUnusedPanel = ({ count, isDeleting, isExpanded, onDelete, onToggle }: AttachmentLibraryUnusedPanelProps) => { const t = useTranslate(); return (
{t("attachment-library.unused.title")} ({count})

{t("attachment-library.unused.description")}

); };