import { HomePage } from '../pages/home'
import { CreatePage } from '../pages/create'
import { LandingPage } from '../pages/landing/LandingPage'
import { Login } from '../pages/login'
import { ProfilePage } from '../pages/profile'
import { hexToNpub } from '../utils'
import { VerifyPage } from '../pages/verify'
export const appPrivateRoutes = {
homePage: '/',
create: '/create',
verify: '/verify'
}
export const appPublicRoutes = {
profile: '/profile/:npub',
landingPage: '/',
login: '/login',
help: 'https://help.sigit.io'
}
export const getProfileRoute = (hexKey: string) =>
appPublicRoutes.profile.replace(':npub', hexToNpub(hexKey))
export const publicRoutes = [
{
path: appPublicRoutes.landingPage,
hiddenWhenLoggedIn: true,
element:
},
{
path: appPublicRoutes.login,
hiddenWhenLoggedIn: true,
element:
},
{
path: appPublicRoutes.profile,
element:
}
]
export const privateRoutes = [
{
path: appPrivateRoutes.homePage,
element:
},
{
path: appPrivateRoutes.create,
element:
},
{
path: appPrivateRoutes.verify,
element:
}
]