"use client" import { TaxForm } from "@/modules/settings/tax-rates/tax-form" import { ResourcePage } from "@/shared/data-view/resource-page" import { ColumnHeader } from "@/shared/data-view/table-view" import FormDialog from "@/shared/components/form-dialog" import { TAX_ROUTES } from "@garage/api" import type { TaxesClient } from "@garage/api" import { CheckIcon, XIcon } from "lucide-react" export default function TaxesPage() { return ( pageTitle="Tax & Rates" routeKey={TAX_ROUTES.INDEX} getClient={(api) => api.taxes} headerProps={({ selectedItem, invalidateQuery }) => ({ actions: ( {(resourceId) => ( )} ), })} columns={({ actionsColumn }) => [ { accessorKey: "title", header: ({ column }) => , }, { accessorKey: "rate", header: ({ column }) => , cell: ({ row }) => `${(row.original as any).rate ?? 0}%`, }, { accessorKey: "note", header: ({ column }) => , cell: ({ row }) => ( {(row.original as any).note ?? "—"} ), }, { accessorKey: "is_default", header: ({ column }) => , cell: ({ row }) => (row.original as any).is_default ? : , }, actionsColumn(), ]} /> ) }