Spaces:
Paused
Paused
File size: 708 Bytes
27fd333 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
'use client'
import React from 'react'
import { useSearchParams } from 'next/navigation'
import cn from 'classnames'
import NormalForm from './normalForm'
import OneMoreStep from './oneMoreStep'
const Forms = () => {
const searchParams = useSearchParams()
const step = searchParams.get('step')
const getForm = () => {
switch (step) {
case 'next':
return <OneMoreStep />
default:
return <NormalForm />
}
}
return <div className={
cn(
'flex flex-col items-center w-full grow justify-center',
'px-6',
'md:px-[108px]',
)
}>
<div className='flex flex-col md:w-[400px]'>
{getForm()}
</div>
</div>
}
export default Forms
|