import { cn } from "@lib/utils" import { Input } from "@ui/components/input" import { Label1Regular } from "@ui/text/label/label-1-regular" interface LabeledInputProps extends React.ComponentProps<"div"> { label?: string inputType: string inputPlaceholder: string error?: string | null inputProps?: React.ComponentProps } export function LabeledInput({ inputType, inputPlaceholder, className, error, inputProps, label, ...props }: LabeledInputProps) { return (
{label && ( {label} )} {error && (

{error}

)}
) }