fix: hide clip button

This commit is contained in:
Kieran 2023-12-08 15:57:39 +00:00
parent 1f191c341f
commit 710c7b1062
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -9,13 +9,14 @@ import { unwrap } from "@snort/shared";
import { useContext } from "react";
import { SnortContext } from "@snort/system-react";
import { Icon } from "./icon";
import { StreamState } from "..";
export function ClipButton({ ev }: { ev: TaggedNostrEvent }) {
const system = useContext(SnortContext);
const { id, service } = extractStreamInfo(ev);
const { id, service, status } = extractStreamInfo(ev);
const login = useLogin();
if (!service) return;
if (!service || status !== StreamState.Live) return;
async function makeClip() {
if (!service || !id) return;