"use client" import { useRef } from "react" import { Button, type Key, Label, ListBox, ListBoxItem, Popover, Select as ReactAriaSelect, SelectValue, } from "react-aria-components" import SelectChevron from "../../SelectChevron" import styles from "./select.module.css" import type { SelectProps } from "./select" export default function Select({ "aria-label": ariaLabel, items, label, name, onSelect, placeholder, value, }: SelectProps) { const divRef = useRef(null) function handleOnSelect(key: Key) { onSelect(key, name) } return (
{items.map((item) => ( {item} ))}
) }