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