chore: web ui/api move
This commit is contained in:
1 parent
4414c73543
commit
31bc94c9ff
9 files changed
+1
-1
No files matched your search
@@ -0,0 +1,8 @@
|
||||
export const SettingSwitch = (configKey?: string, isActive: boolean = false, extraData?: Record<string, string>) => {
|
||||
return `<setting-switch
|
||||
${configKey ? `data-config-key="${configKey}"` : ''}
|
||||
${isActive ? 'is-active' : ''}
|
||||
${extraData ? Object.keys(extraData).map((key) => `data-${key}="${extraData[key]}"`) : ''}
|
||||
>
|
||||
</setting-switch>`
|
||||
}
|
||||
Reference in new issue
Block a user