impr: replace amMod, amModOfAny, isAdmin, with profile class getters

This commit is contained in:
Xylight committed 2025-09-28 13:49:18 -07:00
1 parent e55d8abfa7
commit 8a217198ea
18 files changed
+89 -89

No files matched your search

+6 -2
View File
@@ -3,12 +3,16 @@
let {
showLabel = false,
hidden = false,
children,
}: { showLabel?: boolean; children: Snippet } = $props()
}: { showLabel?: boolean; hidden?: boolean; children: Snippet } = $props()
</script>
<div
class="text-slate-800 dark:text-zinc-200 text-xs font-medium mx-3 my-1.5 flex items-center gap-1"
class={[
'text-slate-800 dark:text-zinc-200 text-xs font-medium mx-3 my-1.5 flex items-center gap-1',
hidden && 'sr-only',
]}
>
<div class={[!showLabel && 'sr-only']}>{@render children?.()}</div>
<hr