import clsx from 'clsx'; import { h, JSX } from 'preact'; import { useState } from 'preact/hooks'; import { ArrowIcon } from 'components/icons/arrow'; import styles from './select.module.css'; type Item = { label: string | number; value: string | number; }; type Props = { items: Item[]; selected: Item; } & Omit, 'className' | 'onFocus' | 'onBlur' | 'selected'>; export function Select({ items, selected, ...props }: Props) { const [focus, setFocus] = useState(false); return ( {selected.label} ); }