import React from 'react'
import BlockLayout from '../collection/block-layout'

export default () => <BlockLayout which='display' />

import React from 'react'
import BlockLayout from '../collection/block-layout'
import { withCampaignData } from '../data/campaign'
import { iAmOwner } from '../data/owner'
import { maybeHidesNav } from './layout'

const connectDashboard = compose(
	withCampaignData,
  assertAmOwner('campaign'),
  maybeHidesNav(({ isOwner }) => isOwner)
)

export default connectDashboard(() => <BlockLayout which='display' />)

hide nav only if owner