- 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

@ -4,7 +4,7 @@ import { unixNow } from "@snort/shared";
import { NostrEvent, TaggedNostrEvent } from "@snort/system";
import { useMemo } from "react";
export function useLiveStreams(feed: Array<TaggedNostrEvent>, oldest?: number) {
export function useSortedStreams(feed: Array<TaggedNostrEvent>, oldest?: number) {
function sortCreatedAt(a: NostrEvent, b: NostrEvent) {
return b.created_at > a.created_at ? 1 : -1;
}