import { NostrLink, TaggedNostrEvent } from "@snort/system"; import { Profile } from "./profile"; import { FormattedMessage } from "react-intl"; import { extractStreamInfo, findTag } from "@/utils"; import { useEventFeed } from "@snort/system-react"; import EventReactions from "./event-reactions"; import { Link } from "react-router-dom"; export default function LiveStreamClip({ ev }: { ev: TaggedNostrEvent }) { const src = findTag(ev, "r"); const streamTag = NostrLink.fromTags(ev.tags)?.[0]; const streamEvent = useEventFeed(streamTag); const { title } = extractStreamInfo(streamEvent); return ( <>