"use client"; import React from "react"; import { ChevronDown } from "lucide-react"; interface SelectOption { value: string; label: string; } interface GlassSelectProps { label?: string; options: SelectOption[]; value: string; onChange: (value: string) => void; placeholder?: string; error?: string; id?: string; disabled?: boolean; } export default function GlassSelect({ label, options, value, onChange, placeholder = "Select...", error, id, disabled = false, }: GlassSelectProps): React.ReactElement { const selectId = id || label?.toLowerCase().replace(/\s+/g, "-"); return (
{label && ( )}
{error &&

{error}

}
); }