"use client" import { CrudDialog } from "@/shared/components/crud-dialog" import { ColumnHeader } from "@/shared/data-view/table-view" import { useAuthApi } from "@/shared/useApi" import { TASK_SECTION_ROUTES } from "@garage/api" import { TaskSectionForm } from "./task-section-form" export function TaskSectionCrudDialog() { const api = useAuthApi() return ( api.taskSections} resourceLabel="task section" columns={() => [ { accessorKey: "title", header: ({ column }) => , }, { accessorKey: "arrangement", header: ({ column }) => , }, { accessorKey: "is_default", header: () => Default, cell: ({ row }) => ((row.original as any).is_default ? "Yes" : "No"), enableSorting: false, }, ]} renderForm={({ resourceId, initialData, onSuccess }) => ( )} /> ) }