import { List, ListItem, ListItemButton, ListItemText } from "@mui/material"; import { connect } from "react-redux"; import { MyLink } from "."; import { actionCategoryFindOne } from "../reducers"; export const CatsList = ({ cats = [] }) => { return ( {cats.map(cat => ( ))} ) }; const CRootCats = connect(state => ({ cats: state.promise.rootCats?.payload }))(CatsList) const CatItem = ({ cat }) => { return ( ) }; export { CRootCats };