text: import OrganizerToken from '../../tokens/organizer'
  import { Page } from '@admin'
  import React from 'react'
  import Edit from './edit'
  import New from './new'
  
  const mapPropsToPage = (props, context, resources, page) => ({
    title: 'Organizers',
    collection: {
      endpoint: '/api/admin/events/organizers',
      table: [
        { label: 'ID', key: 'id', collapsing: true, visible: false },
        { label: 'Name', key: 'name', primary: true, format: OrganizerToken }
      ],
      defaultSort: { key: 'name', order: 'asc' },
      empty: {
        icon: 'user',
        title: 'No Organizers',
        text: 'You have not yet created any organizers',
        buttons: [
          { label: 'Create Organizer', modal: New }
        ]
      },
      recordTasks: (organizer) => [
        { label: 'Edit Organizer', modal: <Edit organizer={ organizer } /> }
      ],
      entity: 'event'
    },
    task: {
      icon: 'plus',
      modal: New
    }
  })
  
  export default Page(null, mapPropsToPage)
  