mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
10 lines
457 B
TypeScript
10 lines
457 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}`;
|
|
};
|