"use client" import * as React from "react" import { cn } from "../core/cn" import { ChevronDown } from "lucide-react" export interface SimpleSelectOption { value: string label: string disabled?: boolean } export interface SimpleSelectGroup { group: string items: SimpleSelectOption[] } export type SimpleSelectOptions = SimpleSelectOption[] | SimpleSelectGroup[] interface SimpleSelectProps { value: string onValueChange: (value: string) => void options: SimpleSelectOptions placeholder?: string disabled?: boolean size?: "sm" | "default" className?: string } function isGrouped( options: SimpleSelectOptions, ): options is SimpleSelectGroup[] { return options.length > 0 && "group" in options[0] } function SimpleSelect({ value, onValueChange, options, placeholder = "Select...", disabled = false, size = "default", className, }: SimpleSelectProps) { return (