mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
8 lines
256 B
TypeScript
8 lines
256 B
TypeScript
import { WEBAPP_BASE_URL } from '../constants/app';
|
|
|
|
export const formatTeamUrl = (teamUrl: string, baseUrl?: string) => {
|
|
const formattedBaseUrl = (baseUrl ?? WEBAPP_BASE_URL).replace(/https?:\/\//, '');
|
|
|
|
return `${formattedBaseUrl}/t/${teamUrl}`;
|
|
};
|