new.tsx17 lines · main
| 1 | import { SupportFormPage } from '@/components/interfaces/Support/SupportFormPage' |
| 2 | import { AppLayout } from '@/components/layouts/AppLayout/AppLayout' |
| 3 | import { DefaultLayout } from '@/components/layouts/DefaultLayout' |
| 4 | import { withAuth } from '@/hooks/misc/withAuth' |
| 5 | import type { NextPageWithLayout } from '@/types' |
| 6 | |
| 7 | const SupportPage: NextPageWithLayout = () => { |
| 8 | return <SupportFormPage /> |
| 9 | } |
| 10 | |
| 11 | SupportPage.getLayout = (page) => ( |
| 12 | <AppLayout> |
| 13 | <DefaultLayout hideMobileMenu>{page}</DefaultLayout> |
| 14 | </AppLayout> |
| 15 | ) |
| 16 | |
| 17 | export default withAuth(SupportPage, { useHighestAAL: false }) |