import { connect } from "react-redux" ; import { Classifier } from "@piximi/types" ; import { SaveListItem } from "./SaveListItem" ; type State = { classifier : Classifier ; } ; const mapStateToProps = ( state ) => { return { categories : state . classifier . categories , images : state . classifier . images } ; } ; export const ConnectedSaveListItem = connect ( mapStateToProps ) ( SaveListItem ) ;