import * as React from "react"; import { cn } from "../../utils/cn"; type DetailFieldProps = React.ComponentProps<"div"> & { label: string; value?: React.ReactNode; horizontal?: boolean; labelWidth?: string; }; function DetailField({ label, value, horizontal = false, labelWidth, className, children, ...props }: DetailFieldProps) { return (
{label}
{value ?? children}
); } export { DetailField }; export type { DetailFieldProps };