import { Info } from "lucide-react"; import { cn } from "@/lib/utils"; import { Label } from "./ui/label"; import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip"; export function LabelWrapper({ label, description, helperText, id, required, flex, start, children, disabled, }: { label: string; description?: string; helperText?: string | React.ReactNode; id: string; required?: boolean; flex?: boolean; start?: boolean; children: React.ReactNode; disabled?: boolean; }) { return (
{!flex &&
{children}
} {description && (

{description}

)}
{flex &&
{children}
}
); }