feat: topics page

This commit is contained in:
2023-11-14 10:51:58 +00:00
parent f2a41cb474
commit c530e4ba72
5 changed files with 40 additions and 9 deletions

View File

@ -0,0 +1,20 @@
import Timeline from "Element/Feed/Timeline";
import useLogin from "Hooks/useLogin";
export function TopicsPage() {
const { tags, pubKey } = useLogin(s => ({ tags: s.tags.item, pubKey: s.publicKey }));
return (
<Timeline
subject={{
type: "hashtag",
items: tags,
discriminator: pubKey ?? "",
}}
postsOnly={true}
method="TIME_RANGE"
loadMore={true}
window={60 * 60 * 6}
/>
);
}