import { Input } from "@/components/ui/input" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Textarea } from "@/components/ui/textarea" import { cn } from "@/lib/utils" import { SelectProps } from "@radix-ui/react-select" import { InputHTMLAttributes, TextareaHTMLAttributes } from "react" type FormInputProps = InputHTMLAttributes & { title: string hideIfEmpty?: boolean } export function FormInput({ title, hideIfEmpty = false, ...props }: FormInputProps) { if (hideIfEmpty && (!props.defaultValue || props.defaultValue.toString().trim() === "") && !props.value) { return null } return ( ) } type FormTextareaProps = TextareaHTMLAttributes & { title: string hideIfEmpty?: boolean } export function FormTextarea({ title, hideIfEmpty = false, ...props }: FormTextareaProps) { if (hideIfEmpty && (!props.defaultValue || props.defaultValue.toString().trim() === "") && !props.value) { return null } return (