"use client" import { CrudDialog } from "@/shared/components/crud-dialog" import { ColumnHeader } from "@/shared/data-view/table-view" import { useAuthApi } from "@/shared/useApi" import { INVOICE_SEQUENCE_ROUTES } from "@garage/api" import { InvoiceSequenceForm } from "./invoice-sequence-form" export function InvoiceSequenceCrudDialog() { const api = useAuthApi() return ( api.invoiceSequences} resourceLabel="invoice sequence" columns={() => [ { accessorKey: "title", header: ({ column }) => , }, { accessorKey: "sequence_title", header: ({ column }) => , }, { accessorKey: "prefix", header: ({ column }) => , }, { accessorKey: "start_number", header: ({ column }) => , }, ]} renderForm={({ resourceId, initialData, onSuccess }) => ( )} /> ) }