fix confirm dialog
This commit is contained in:
parent
d850726910
commit
d80c06cd55
6 changed files with 128 additions and 54 deletions
|
|
@ -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} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue