Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import { NotificationFeedType } from "@hey/data/enums";
2import { useState } from "react";
3import NotLoggedIn from "@/components/Shared/NotLoggedIn";
4import PageLayout from "@/components/Shared/PageLayout";
5import { useAccountStore } from "@/store/persisted/useAccountStore";
6import FeedType from "./FeedType";
7import List from "./List";
8
9const Notification = () => {
10 const { currentAccount } = useAccountStore();
11 const [feedType, setFeedType] = useState<NotificationFeedType>(
12 NotificationFeedType.All
13 );
14
15 if (!currentAccount) {
16 return <NotLoggedIn />;
17 }
18
19 return (
20 <PageLayout title="Notifications">
21 <FeedType feedType={feedType} setFeedType={setFeedType} />
22 <List feedType={feedType} />
23 </PageLayout>
24 );
25};
26
27export default Notification;