Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 🫖 Status page with uptime monitoring & API monitoring as code 🫖 openstatus.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031import { cn } from "@/lib/utils";
import { TableCellEmpty } from "./table-cell-empty";
export function TableCellText({ value, empty, className, ...props}: React.ComponentProps<"div"> & { value: unknown; empty?: string }) { if (typeof value === "string" && value.length > 0) { return ( <div className={cn(className)} {...props}> {value} </div> ); } if (typeof value === "number") { return ( <div className={cn(className)} {...props}> {value} </div> ); } return ( <TableCellEmpty className={className} {...props}> {empty} </TableCellEmpty> );}