chore: web ui/api move

This commit is contained in:
手瓜一十雪 committed 2024-05-06 21:12:34 +08:00
1 parent 1c6b5cffe1
commit 788ef5d81c
9 files changed
+1 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export const SettingItem = (
title: string,
subtitle?: string,
action?: string,
id?: string,
visible: boolean = true,
) => {
return `<setting-item ${id ? `id="${id}"` : ''} ${!visible ? 'is-hidden' : ''}>
<div>
<setting-text>${title}</setting-text>
${subtitle ? `<setting-text data-type="secondary">${subtitle}</setting-text>` : ''}
</div>
${action ? `<div>${action}</div>` : ''}
</setting-item>`
}