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', { return React.createElement('div', {
className: props.className ?? 'dshRemoteFastModeSwitches', className: props.className ?? 'dshRemoteFastModeSwitches',
}, TOGGLE_ORDER.map(key => React.createElement(RemoteToggleSwitch, { },
key, React.createElement('span', { className: 'dshRemoteFastModeGroupTitle' }, props.t('fastModeGroupTitle')),
control: props.control, TOGGLE_ORDER.map(key => React.createElement(RemoteToggleSwitch, {
t: props.t, key,
configKey: key, control: props.control,
}))) t: props.t,
configKey: key,
})))
} }
} }