'use client'; import clsx from 'clsx'; import { SelectorButton } from '@/components/control1'; import { Dropdown, DropdownButton, useDropdown } from '@/components/dropdown1'; import { type Styling } from '@/components/props'; import { prefixes } from '@/utils/constants'; import { describeLocationHead, labelLocationHead } from '../labels'; import { LocationHead } from '../models/library'; import { IconLocationHead } from './icon-location-head'; interface SelectLocationHeadProps extends Styling { value: LocationHead; onChange: (newValue: LocationHead) => void; excluded?: LocationHead[]; } export function SelectLocationHead({ value, excluded = [], onChange, className, ...restProps }: SelectLocationHeadProps) { const menu = useDropdown(); function handleChange(newValue: LocationHead) { menu.hide(); onChange(newValue); } return (