'use client' import { Menu, Transition } from '@headlessui/react' import { Fragment } from 'react' import { GlobeAltIcon } from '@heroicons/react/24/outline' type ISelectProps = { items: Array<{ value: string; name: string }> value?: string className?: string onChange?: (value: string) => void } export default function Select({ items, value, onChange, }: ISelectProps) { const item = items.filter(item => item.value === value)[0] return (