mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: swtich
This commit is contained in:
@@ -15,7 +15,13 @@
|
||||
</script>
|
||||
|
||||
<Tooltip
|
||||
content={tooltip ? (state ? $i18n.t('Enabled') : $i18n.t('Disabled')) : ''}
|
||||
content={typeof tooltip === 'string'
|
||||
? tooltip
|
||||
: typeof tooltip === 'boolean' && tooltip
|
||||
? state
|
||||
? $i18n.t('Enabled')
|
||||
: $i18n.t('Disabled')
|
||||
: ''}
|
||||
placement="top"
|
||||
>
|
||||
<Switch.Root
|
||||
|
||||
Reference in New Issue
Block a user