"use client" import { CrudDialog } from "@/shared/components/crud-dialog" import { ColumnHeader } from "@/shared/data-view/table-view" import { useAuthApi } from "@/shared/useApi" import { INVENTORY_CATEGORY_ROUTES } from "@garage/api" import { InventoryCategoryForm } from "./inventory-category-form" export function InventoryCategoryCrudDialog() { const api = useAuthApi() return ( api.inventoryCategories} resourceLabel="inventory category" columns={() => [ { accessorKey: "title", header: ({ column }) => , }, ]} renderForm={({ resourceId, initialData, onSuccess }) => ( )} /> ) }