import React, { useContext, useEffect } from "react";
import { getLayout } from "../../src/layouts/EntriesLayout";
import StreamEntryDetails from "../../src/components/SteamEntryDetails";
import UIContext from "../../src/core/providers/UIProvider/context";
import {
Box,
Heading,
Text,
Stack,
UnorderedList,
ListItem,
} from "@chakra-ui/react";
import RouteButton from "../../src/components/RouteButton";
const Entry = () => {
console.count("render stream!");
const ui = useContext(UIContext);
useEffect(() => {
if (typeof window !== "undefined") {
if (ui?.currentTransaction) {
document.title = `Stream details: ${ui.currentTransaction.hash}`;
} else {
document.title = `Stream`;
}
}
}, [ui?.currentTransaction]);
if (ui?.currentTransaction) {
return ;
} else
return (
<>
Stream view
In this view you can follow events that happen on your subscribed
addresses
Click filter icon on right top corner to filter by specific
address across your subscriptions
On event cards you can click at right corner to see detailed
view!
For any adress of interest here you can copy it and subscribe at
subscription screen
Learn how to use moonstream
>
);
};
Entry.getLayout = getLayout;
export default Entry;