diff --git a/src/common/routes.ts b/src/common/routes.ts index 77da4f5cf..9cf6b2b6c 100644 --- a/src/common/routes.ts +++ b/src/common/routes.ts @@ -4,7 +4,13 @@ // We will centralize them here, for UI and routing purposes. // +import { NextRouter } from 'next/router'; + +const APP_CHAT = '/'; const APP_SHARING = '/shared/:sharedId'; export const getSharingRelativePath = (sharedId: string) => APP_SHARING.replace(':sharedId', sharedId); + +export const navigateToChat = async (next: NextRouter['push'] | NextRouter['replace']) => + next(APP_CHAT).then(() => null); \ No newline at end of file