24 lines
468 B
TypeScript
24 lines
468 B
TypeScript
|
|
// Next Imports
|
||
|
|
|
||
|
|
// Type Imports
|
||
|
|
import type { Locale } from '@configs/i18n'
|
||
|
|
import type { ChildrenType } from '@core/types'
|
||
|
|
|
||
|
|
// Config Imports
|
||
|
|
|
||
|
|
// Util Imports
|
||
|
|
|
||
|
|
const GuestOnlyRoute = async ({ children, lang }: ChildrenType & { lang: Locale }) => {
|
||
|
|
// const session = await getServerSession()
|
||
|
|
|
||
|
|
// if (session) {
|
||
|
|
// redirect(getLocalizedUrl(themeConfig.homePageUrl, lang))
|
||
|
|
// }
|
||
|
|
|
||
|
|
console.log(lang)
|
||
|
|
|
||
|
|
return <>{children}</>
|
||
|
|
}
|
||
|
|
|
||
|
|
export default GuestOnlyRoute
|