- Clip page
- Reactions on notes / clips
- Summary clips / shares
This commit is contained in:
2024-03-05 16:35:20 +00:00
parent 0151c06f13
commit 1e190a042f
25 changed files with 369 additions and 207 deletions

View File

@ -1,5 +1,5 @@
import { useLogin } from "@/hooks/login";
import { useLiveStreams } from "@/hooks/useLiveStreams";
import { useSortedStreams } from "@/hooks/useLiveStreams";
import { getTagValues, getHost } from "@/utils";
import { NostrEvent, TaggedNostrEvent } from "@snort/system";
import { ReactNode, useCallback, useMemo } from "react";
@ -17,7 +17,7 @@ export default function VideoGridSorted({ evs, showAll }: { evs: Array<TaggedNos
},
[tags]
);
const { live, planned, ended } = useLiveStreams(evs, showAll ? 0 : undefined);
const { live, planned, ended } = useSortedStreams(evs, showAll ? 0 : undefined);
const hashtags = getTagValues(tags, "t");
const following = live.filter(followsHost);
const liveNow = live.filter(e => !following.includes(e));