import React, { ChangeEvent, FunctionComponent } from 'react'; import { Select } from '@codesandbox/components'; type Props = { mapName?: (param: string) => string; options: string[]; setValue: (value: string) => void; value: string; }; export const PreferenceDropdown: FunctionComponent = ({ mapName, options, setValue, value, }) => { const handleChange = ({ target }: ChangeEvent) => { setValue(target.value); }; return ( ); };