mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 02:51:46 +00:00
22 lines
527 B
TypeScript
22 lines
527 B
TypeScript
import builder from './index';
|
|
|
|
const visualizerTypes = ['butterchurn', 'vudio', 'wave'] as const; // For bundling
|
|
|
|
export default builder.createMenu(async ({ getConfig, setConfig }) => {
|
|
const config = await getConfig();
|
|
|
|
return [
|
|
{
|
|
label: 'Type',
|
|
submenu: visualizerTypes.map((visualizerType) => ({
|
|
label: visualizerType,
|
|
type: 'radio',
|
|
checked: config.type === visualizerType,
|
|
click() {
|
|
setConfig({ type: visualizerType });
|
|
},
|
|
})),
|
|
},
|
|
];
|
|
});
|