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
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
514 B ยท 20 lines
123456789101112131415161718192021import { cn } from "@/lib/utils";
export function TableCellNumber({ value, className, unit, ...props}: React.ComponentProps<"div"> & { value: unknown; unit?: string }) { const _value = Number(value); if (Number.isNaN(_value)) { return <div className="text-muted-foreground font-mono">N/A</div>; }
return ( <div className={cn("text-foreground font-mono", className)} {...props}> {_value} {unit && <span className="text-muted-foreground p-0.5">{unit}</span>} </div> );}