2025-01-02 15:33:37 +11:00
|
|
|
import { NEXT_PUBLIC_WEBAPP_URL } from '../constants/app';
|
2024-06-06 14:46:48 +10:00
|
|
|
|
|
|
|
|
export const formatUserProfilePath = (
|
|
|
|
|
profileUrl: string,
|
|
|
|
|
options: { excludeBaseUrl?: boolean } = {},
|
|
|
|
|
) => {
|
2025-01-02 15:33:37 +11:00
|
|
|
return `${!options?.excludeBaseUrl ? NEXT_PUBLIC_WEBAPP_URL() : ''}/p/${profileUrl}`;
|
2024-06-06 14:46:48 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const formatTeamProfilePath = (
|
|
|
|
|
profileUrl: string,
|
|
|
|
|
options: { excludeBaseUrl?: boolean } = {},
|
|
|
|
|
) => {
|
2025-01-02 15:33:37 +11:00
|
|
|
return `${!options?.excludeBaseUrl ? NEXT_PUBLIC_WEBAPP_URL() : ''}/p/${profileUrl}`;
|
2024-06-06 14:46:48 +10:00
|
|
|
};
|