Import packages/plugin/src/client/fast-mode-switches.ts

This commit is contained in:
QQ 2026-11-18 08:19:19 +08:00
parent dce71c917e
commit e9ad2d336c
1 changed files with 8 additions and 6 deletions

View File

@ -82,11 +82,13 @@ export function createFastModeSwitches(React: ClientReact) {
}) {
return React.createElement('div', {
className: props.className ?? 'dshRemoteFastModeSwitches',
}, TOGGLE_ORDER.map(key => React.createElement(RemoteToggleSwitch, {
key,
control: props.control,
t: props.t,
configKey: key,
})))
},
React.createElement('span', { className: 'dshRemoteFastModeGroupTitle' }, props.t('fastModeGroupTitle')),
TOGGLE_ORDER.map(key => React.createElement(RemoteToggleSwitch, {
key,
control: props.control,
t: props.t,
configKey: key,
})))
}
}