import Store from '../../store'; import Card from '../ui/Card'; import Content from '../ui/Content'; import * as selectors from '../../store/selectors'; import usePage from '../../hooks/usePage'; import { home, homeOutline } from 'ionicons/icons'; const HomeCard = ({ title, type, text, author, image }) => (

{type}

{title}

{text}

); const Home = ({ selected }) => { usePage({ id: 'home', title: 'Home', icon: homeOutline, selectedIcon: home, }); const homeItems = Store.useState(selectors.getHomeItems); return ( {homeItems.map((i, index) => ( ))} ); }; export default Home;