import { TableCell, TableRow, } from "@/shared/components/ui/table" /** * 表格空行:统一的"无数据"占位行。 * * 覆盖以下重复模式(3 个审计表格逐行复制): * - audit-log-table.tsx: colSpan=7, "No audit logs found." * - login-log-table.tsx: colSpan=6, "No login logs found." * - data-change-log-table.tsx: colSpan=7, "No data change logs found." * * 结构:TableRow > TableCell(colSpan, h-24, text-center, text-muted-foreground)。 */ interface EmptyTableRowProps { /** 跨列数 */ colSpan: number /** 空状态文案(默认 "No data found.") */ message?: string } export function EmptyTableRow({ colSpan, message = "No data found.", }: EmptyTableRowProps) { return ( {message} ) }