import { ID } from '@src/modules/shared/SharedTypes' ; export const urls = { home : ( ) => '/' , login : ( ) => '/login' , categoryPosts : ( categorySlug ) => `/${ categorySlug }` , post : ( postId ) => `/posts/${ postId }` , userProfile : ( userId ) => `/users/${ userId }` , userProfileSettings : ( userId ) => `/users/${ userId }/settings` , userProfileSessions : ( userId ) => `/users/${ userId }/sessions` , } ; export const redirectToHome = ( logoutTimeStamp ? ) => { let href = urls . home ( ) ; if ( logoutTimeStamp ) { href = `${ href }?logout=${ logoutTimeStamp }` ; } window . location . href = href ; } ;