import React, { Component } from 'react'
import { Route } from 'react-router-dom'
import { connect } from 'react-redux'
import { history } from 'app/store'
import actions from 'app/actions'
import { MenuButton } from 'app/common'
const mapStateToProps = state => ({
venue: state.venue,
})
export default class VenueMenu extends Component {
render() {
return (
)
}
}
const VenueIndexMenu = () => ([
,
])
const VenueShowMenu = connect(mapStateToProps)((props) => ([
,
,
{
const { res: venue } = props.venue.show
if (confirm("Really delete this venue?")) {
actions.venue.destroy(venue).then(() => {
history.push('/venue/')
})
}
}} />,
]))
const VenueNewMenu = (props) => ([
,
])
const VenueEditMenu = connect(mapStateToProps)((props) => ([
,
{
const { res: venue } = props.venue.show
if (confirm("Really delete this venue?")) {
actions.venue.destroy(venue).then(() => {
history.push('/venue/')
})
}
}} />,
]))