This commit is contained in:
MeghdadFadaee committed 2026-09-09 16:33:18 +03:30
commit aafddfb146
64 files changed
+17178

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
export const sameTenant = (left, right) =>
left !== null && right !== null && String(left) === String(right)
export const tenantInitial = title =>
String(title || 'T').trim().charAt(0).toLocaleUpperCase()
export const tenantStyle = tenant => ({
'--tenant-accent': tenant.accent || '#7c3aed',
})
export const currentLogoUrl = (apiBase, tenantKey, revision) =>
`${apiBase}/current/logo?tenant=${encodeURIComponent(tenantKey ?? 'none')}&v=${revision}`