/* @flow */
import { Route, Switch } from 'react-router'

import CreatorContainer from 'containers/CreatorContainer'

type RouteDefinition = {
  component: ReactClass<*>,
  key: string,
  path: string,
  exact?: boolean,
}

const defs: Array<RouteDefinition> = [
  {
    component: CreatorContainer,
    key: 'document#edit',
    path: '/',
    exact: true,
  },
]

export default (
  <Switch>
    { defs.map(props => (<Route {...props} />)) }
  </Switch>
)

@@ -109,16 +109,75 @@
 ntainer'
+%0Aimport PreviewContainer from 'containers/PreviewContainer'
 %0A%0Atype R
@@ -415,16 +415,106 @@
 e,%0A  %7D,%0A
+  %7B%0A    component: PreviewContainer,%0A    key: 'document#show',%0A    path: '/preview',%0A  %7D,%0A
 %5D%0A%0Aexpor

Add /preview routing