TestGatsbySanity/studio/plugins/dashboard-widget-structure-menu/src/widget.js
2019-05-09 10:15:41 -05:00

10 lines
346 B
JavaScript

import {withPropsStream} from 'react-props-stream'
import {withRouterHOC} from 'part:@sanity/base/router'
import {StructureMenuWidget} from './components'
import {toPropsStream} from './props'
export default {
name: 'structure-menu',
component: withRouterHOC(withPropsStream(toPropsStream, StructureMenuWidget)),
layout: {width: 'full'}
}