mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
Merge branch "main"
This commit is contained in:
13
packages/lib/utils/team-global-settings-to-branding.ts
Normal file
13
packages/lib/utils/team-global-settings-to-branding.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import type { TeamGlobalSettings } from '@documenso/prisma/client';
|
||||
|
||||
import { NEXT_PUBLIC_WEBAPP_URL } from '../constants/app';
|
||||
|
||||
export const teamGlobalSettingsToBranding = (teamGlobalSettings: TeamGlobalSettings) => {
|
||||
return {
|
||||
...teamGlobalSettings,
|
||||
brandingLogo:
|
||||
teamGlobalSettings.brandingEnabled && teamGlobalSettings.brandingLogo
|
||||
? `${NEXT_PUBLIC_WEBAPP_URL()}/api/branding/logo/team/${teamGlobalSettings.teamId}`
|
||||
: '',
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user