import { connect } from 'react-redux' ; import { GalleryItemLabel } from '../pages/images' ; import { Classifier } from '@piximi/types' ; type State = { classifier : Classifier ; } ; const mapStateToProps = ( state ) => { return { categories : state . classifier . categories } ; } ; const ConnectedItemLabel = connect ( mapStateToProps ) ( GalleryItemLabel ) ; export default ConnectedItemLabel ;