"use client"; import type { ReactElement } from "react"; import { useTranslation } from "react-i18next"; import { LoadingDots, type LoadingDotsSize, } from "@/components/ui/loading-dots"; import { TableCell, TableRow } from "@/components/ui/table"; import { cn } from "@/lib/utils"; /** 区块居中加载(列表、表单、详情页等) */ export function AdminLoadingState({ className, label, size = "md", showLabel = false, minHeight = "4rem", }: { className?: string; label?: string; size?: LoadingDotsSize; showLabel?: boolean; minHeight?: string | number; }): ReactElement { const { t } = useTranslation("common"); const resolvedLabel = label ?? t("states.loading"); return (