"use client"; import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header"; import type { RouterOutputs } from "@openstatus/api"; import type { ColumnDef } from "@tanstack/react-table"; import { DataTableRowActions } from "./data-table-row-actions"; type PageComponent = RouterOutputs["pageComponent"]["list"][number]; export const columns: ColumnDef[] = [ { accessorKey: "name", header: "Name", enableSorting: false, enableHiding: false, }, { accessorKey: "description", header: "Description", enableSorting: false, cell: ({ row }) => { const value = row.getValue("description"); return ( {value ? String(value) : "-"} ); }, }, { accessorKey: "type", header: ({ column }) => ( ), cell: ({ row }) => { const value = row.getValue("type"); return {String(value)}; }, }, { accessorKey: "order", header: ({ column }) => ( ), cell: ({ row }) => { const value = row.getValue("order"); return {value != null ? String(value) : "-"}; }, }, { id: "actions", cell: ({ row }) => , meta: { cellClassName: "w-8", }, }, ];