import { Checkbox } from "@repo/shadcn-ui/components/checkbox"; import type { Table as TableModel } from "@tanstack/react-table"; import { useId } from "react"; import { entityListLabels } from "../lib/entity-list"; import { FormDialog } from "./form-dialog"; export function EntityTableColumnsDialog({ table, locale, open, onOpenChange, }: { table: TableModel; locale: string; open: boolean; onOpenChange: (open: boolean) => void; }) { const id = useId(); const labels = entityListLabels(locale); return (
{table.getAllLeafColumns().map((column) => ( ))}
); }