import Card from '../ui/Card'; import { IonPage, IonHeader, IonToolbar, IonTitle, IonButtons, IonButton, IonIcon, IonContent, IonMenuButton, } from '@ionic/react'; import Notifications from './Notifications'; import { useState } from 'react'; import { notificationsOutline } from 'ionicons/icons'; import { getHomeItems } from '../../store/selectors'; import Store from '../../store'; const FeedCard = ({ title, type, text, author, authorAvatar, image }) => (

{type}

{title}

{text}

{author}

); const Feed = () => { const homeItems = Store.useState(getHomeItems); const [showNotifications, setShowNotifications] = useState(false); return ( Feed setShowNotifications(true)}> Feed setShowNotifications(false)} /> {homeItems.map((i, index) => ( ))} ); }; export default Feed;