'use client' import type { Column } from '@tanstack/react-table' import { DataGridCell, DataGridRow } from '@admin/components/shared/data-table/data-grid' import { Skeleton } from '@admin/components/ui/skeleton' import { cn } from '@admin/utils/shared/cn' const SKELETON_ROW_COUNT = 8 interface DataGridSkeletonRowsProps { columns: Column[] label: string selectable?: boolean } export function DataGridSkeletonRows({ columns, label, selectable = true }: DataGridSkeletonRowsProps) { return ( <> Loading {label}… {Array.from({ length: SKELETON_ROW_COUNT }, (_, skeletonRowIndex) => ( ))} ) }