"use client" import * as React from "react" import { ChevronDown } from "lucide-react" import { cn } from "@/lib/utils" export interface FormSelectOption { label: string value: string } export interface FormSelectProps extends React.SelectHTMLAttributes { label?: string error?: string helperText?: string options: FormSelectOption[] placeholder?: string } const FormSelect = React.forwardRef( ({ className, label, error, helperText, id, options, placeholder, ...props }, ref) => { const generatedId = React.useId() const selectId = id || generatedId return (
{label ? ( ) : null}
{error ?

{error}

: null} {helperText && !error ?

{helperText}

: null}
) }, ) FormSelect.displayName = "FormSelect" export { FormSelect }