import { CellContext } from "@tanstack/react-table"; import { registerComponent } from "../../../registries/components"; export function DefaultCellBoolean({ getValue, column: { columnDef } }: CellContext) { const value = getValue(); return {String(value ? columnDef.meta?.labels?.["yes"] || "Yes" : columnDef.meta?.labels?.["no"] || "No")}; } registerComponent("Cell.boolean", DefaultCellBoolean); registerComponent("Cell.checkbox", DefaultCellBoolean);