| 1 |
import React, { useState } from 'react'; |
| 2 |
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; |
| 3 |
|
| 4 |
/* Component */ |
| 5 |
import WizardRoute from './WizardRoute'; |
| 6 |
|
| 7 |
function WizardMain() { |
| 8 |
const [ templatePreview, setTemplatePreview ] = useState( false ); |
| 9 |
return ( |
| 10 |
<Router> |
| 11 |
<div |
| 12 |
className={ `wizard-route bg-white h-screen ${ |
| 13 |
templatePreview ? 'overflow-hidden' : '' |
| 14 |
}` } |
| 15 |
> |
| 16 |
<Switch> |
| 17 |
<Route path="/"> |
| 18 |
<WizardRoute |
| 19 |
setTemplatePreview={ setTemplatePreview } |
| 20 |
/> |
| 21 |
</Route> |
| 22 |
</Switch> |
| 23 |
</div> |
| 24 |
</Router> |
| 25 |
); |
| 26 |
} |
| 27 |
|
| 28 |
export default WizardMain; |
| 29 |
|