update select dialog

This commit is contained in:
Jade (Rose) Rowland 2024-08-11 11:01:17 -04:00
parent e9a0a06b77
commit cba9169b2f
4 changed files with 13 additions and 8 deletions

View file

@ -7,10 +7,9 @@ export function AudioEngineTargetSelector({ target, onChange, isDisabled }) {
const onTargetChange = (target) => {
onChange(target);
};
const options = new Map();
Array.from(Object.keys(audioEngineTargets)).map((key) => {
options.set(key, key);
});
const options = new Map([
[audioEngineTargets.webaudio, audioEngineTargets.webaudio ],
[audioEngineTargets.superdirt, 'superdirt (osc)'],
]);
return <SelectInput isDisabled={isDisabled} options={options} value={target} onChange={onTargetChange} />;
}