-
{detailColumns.map((column) => (
- {column.label}
- {onRenderCell(item, column.field)}
{onRenderCell(item, actionsColumn.field)}
) : null}
'use client' import type { ReactNode } from 'react' import type { PaginationListColumnType } from '@/types' import type { PaginatedListRow } from '@/components/paginated-list/paginatedListUtils' import AdminState from '@/components/feedback/AdminState' import { Skeleton } from '@/components/feedback/LoadingState' interface Props { columns: PaginationListColumnType[] data: PaginatedListRow[] isLoading: boolean onRenderCell: (item: PaginatedListRow, columnKey: React.Key) => ReactNode } const MobileCardSkeleton = () => (