import Image from 'next/image';
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 { selectHomeItems } from '../../store/selectors';
import Store from '../../store';
type FeedCardProps = {
title: string;
type: string;
text: string;
author: string;
authorAvatar: string;
image: string;
};
const FeedCard = ({
title,
type,
text,
author,
authorAvatar,
image,
}: FeedCardProps) => (
);
const Feed = () => {
const homeItems = Store.useState(selectHomeItems);
const [showNotifications, setShowNotifications] = useState(false);
return (
Feed
setShowNotifications(true)}>
Feed
setShowNotifications(false)}
/>
{homeItems.map((i, index) => (
))}
);
};
export default Feed;