import Span from "@moduletrace/twui/layout/Span"; import { twMerge } from "tailwind-merge"; import type { DatabaseCell as DatabaseCellValue } from "@/src/types"; type Props = { cell?: DatabaseCellValue; /** * Whether the cell's record can be opened to read it whole. */ openable: boolean; onOpen: () => void; }; /** * One value in the records table, cut to three lines so a long column * can't push the rest of the row out of sight. Clicking it opens the * record in full. */ export default function DatabaseCell({ cell, openable, onOpen }: Props) { if (!cell || cell.kind == "null") { return ( NULL ); } return ( {cell.text} ); }