- {JSON.stringify(data, null, 2)}
-
+ <>
+
- {event.content}
-
+
- {pointer.type + "\n"}
- {JSON.stringify(pointer.data, null, 2)}
-
- >
- ))}
- >
- )}
-
-
+ {JSON.stringify(Reflect.get(event, field))}
+
+
+ {event.content}
+
+
+ {nast &&
+ {JSON.stringify(event, null, 2)}
+
+ >
+ );
+}
diff --git a/src/components/debug-modal/pages/relays.tsx b/src/components/debug-modal/pages/relays.tsx
new file mode 100644
index 000000000..3d91bdfa3
--- /dev/null
+++ b/src/components/debug-modal/pages/relays.tsx
@@ -0,0 +1,31 @@
+import { useCallback, useState } from "react";
+import { NostrEvent } from "nostr-tools";
+import { Button, Text } from "@chakra-ui/react";
+import { getSeenRelays } from "applesauce-core/helpers";
+
+import { usePublishEvent } from "../../../providers/global/publish-provider";
+import { RelayFavicon } from "../../relay-favicon";
+
+export default function DebugEventRelaysPage({ event }: { event: NostrEvent }) {
+ const publish = usePublishEvent();
+ const [loading, setLoading] = useState(false);
+ const broadcast = useCallback(async () => {
+ setLoading(true);
+ await publish("Broadcast", event);
+ setLoading(false);
+ }, []);
+
+ return (
+ <>
+
- {JSON.stringify(json, null, 2)}
-
-
+ {JSON.stringify(json, null, 2)}
+
- {value}
-
-
+
+ {value}
+