Files
sign/packages/lib/utils/public-profiles.ts

16 lines
471 B
TypeScript
Raw Normal View History

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
};