src/soundStories/components/StoryCreateButton.jsx
import LabelButton from '../../components/LabelButton'
import Create from '@material-ui/icons/Create'
import { connect } from 'react-redux'
import { noArgs } from '../../components'
import { StoryCreateDialog } from './StoryCreateDialog'
const mapStateToProps = (state) => ({
children: 'Create story',
icon: Create
})
const mapDispatchToProps = {
onClick: noArgs(StoryCreateDialog.open)
}
export const StoryCreateButton = connect(
mapStateToProps,
mapDispatchToProps
)(LabelButton)