Skip to content

Open-source status page, incident response and uptime monitoring

405 B
Raw Blame
import { cn } from "@/lib/utils";

export function TableCellBoolean({
  value,
  className,
  ...props
}: React.ComponentProps<"div"> & { value: unknown }) {
  const _value = Boolean(value);

  return (
    <div
      className={cn(
        "font-mono",
        _value ? "text-foreground" : "text-foreground/70",
        className,
      )}
      {...props}
    >
      {String(_value)}
    </div>
  );
}