import { FC } from "react"; import InputWrapper from "./InputWrapper"; import { useInputListStyles } from "./styles"; export interface Props { current: T; options: readonly T[]; onChange: (n: T) => void; id?: string; className?: string; label: string; } export const InputList: FC> = ({ current, options, onChange, label, ...selattr }) => { const invalidCurrent = !options.includes(current); const { classes } = useInputListStyles({ invalidCurrent }); return }