mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
import { WEBAPP_BASE_URL } from '../constants/app';
|
|
|
|
export const formatUserProfilePath = (
|
|
profileUrl: string,
|
|
options: { excludeBaseUrl?: boolean } = {},
|
|
) => {
|
|
return `${!options?.excludeBaseUrl ? WEBAPP_BASE_URL : ''}/p/${profileUrl}`;
|
|
};
|
|
|
|
export const formatTeamProfilePath = (
|
|
profileUrl: string,
|
|
options: { excludeBaseUrl?: boolean } = {},
|
|
) => {
|
|
return `${!options?.excludeBaseUrl ? WEBAPP_BASE_URL : ''}/p/${profileUrl}`;
|
|
};
|