fix confirm dialog

This commit is contained in:
Jade (Rose) Rowland 2024-08-11 00:35:20 -04:00
parent d850726910
commit d80c06cd55
6 changed files with 128 additions and 54 deletions

View file

@ -0,0 +1,16 @@
import React from 'react';
import { audioEngineTargets } from '../../../settings.mjs';
import { SelectInput } from './SelectInput';
// Allows the user to select an audio interface for Strudel to play through
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);
});
return <SelectInput isDisabled={isDisabled} options={options} value={target} onChange={onTargetChange} />;
}