export type SeparatorRow = { type: "separator"; label: string; className?: string; }; export type DataTableRow = TData | SeparatorRow; export function isSeparatorRow(row: DataTableRow): row is SeparatorRow { return typeof row === "object" && row !== null && "type" in row && row.type === "separator"; }