'use client'; import { ChevronDown } from 'lucide-react'; import React, { forwardRef } from 'react'; interface DropdownProps extends React.SelectHTMLAttributes { label?: string; error?: string; } export const Dropdown = forwardRef( ({ label, error, className = '', id, children, ...props }, ref) => { const selectId = id || `dropdown-${Math.random().toString(36).slice(2, 9)}`; return (
{label && ( )}
{error && (

{error}

)}
); }, ); Dropdown.displayName = 'Dropdown';