WizardLayout.tsx19 lines · main
| 1 | import { PropsWithChildren } from 'react' |
| 2 | |
| 3 | import { withAuth } from '@/hooks/misc/withAuth' |
| 4 | |
| 5 | const WizardLayout = ({ children }: PropsWithChildren<{}>) => { |
| 6 | return ( |
| 7 | <div className="flex w-full flex-col"> |
| 8 | <div className="overflow-auto"> |
| 9 | <section className="has-slide-in slide-in relative mx-auto my-10 max-w-2xl"> |
| 10 | {children} |
| 11 | </section> |
| 12 | </div> |
| 13 | </div> |
| 14 | ) |
| 15 | } |
| 16 | |
| 17 | export default withAuth(WizardLayout) |
| 18 | |
| 19 | export const WizardLayoutWithoutAuth = WizardLayout |