"use client" import { MakeAndModelForm } from "@/modules/settings/make-and-models/make-and-model-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 { MAKE_AND_MODEL_ROUTES } from "@garage/api" import type { MakeAndModelsClient } from "@garage/api" export default function MakeAndModelsPage() { return ( pageTitle="Make & Models" routeKey={MAKE_AND_MODEL_ROUTES.INDEX} getClient={(api) => api.makeAndModels} headerProps={({ selectedItem, invalidateQuery }) => ({ actions: ( {(resourceId) => ( )} ), })} columns={({ actionsColumn }) => [ { accessorKey: "make", header: ({ column }) => , cell: ({ row }) => (row.original as any).make ?? "—", }, { accessorKey: "model", header: ({ column }) => , cell: ({ row }) => (row.original as any).model ?? "—", }, { accessorKey: "year", header: ({ column }) => , cell: ({ row }) => (row.original as any).year ?? "—", }, { accessorKey: "sub_model", header: ({ column }) => , cell: ({ row }) => (row.original as any).sub_model ?? "—", }, { accessorKey: "engine_size", header: ({ column }) => , cell: ({ row }) => (row.original as any).engine_size ?? "—", }, { accessorKey: "drivetrain", header: ({ column }) => , cell: ({ row }) => (row.original as any).drivetrain ?? "—", }, { accessorKey: "is_active", header: ({ column }) => , cell: ({ row }) => { const active = (row.original as any).is_active return ( {active ? "Active" : "Inactive"} ) }, }, actionsColumn(), ]} /> ) }