pos-dashboard-v2/src/hocs/GuestOnlyRoute.tsx

24 lines
468 B
TypeScript
Raw Normal View History

2025-08-05 12:35:40 +07:00
// 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