import * as React from 'react' import * as Select from '@radix-ui/react-select' import { TablerIcon } from '../icons' export interface SelectOption { value: string label: React.ReactNode } interface SelectInputProps extends React.HTMLAttributes { options: SelectOption[] value: string onValueChange: (value: string) => void } export function SelectInput({ options, value, onValueChange, ...rest }: SelectInputProps) { const [isOpen, setIsOpen] = React.useState(false) return (
{options.map(option => { return ( {option.label} ) })}
) }