re-arrange custom plugins, prevent overlapping, more 🎨

This commit is contained in:
Jose B
2023-08-16 17:16:19 -05:00
parent 3b204a0a8d
commit 6c99556221
4 changed files with 37 additions and 12 deletions

View File

@@ -10,6 +10,7 @@ import "../../styles/button.css";
const App = () => {
const [stream, setStream] = useState(null);
const [disconnected, setDisconnected] = useState(false);
const useActiveTopic = useState(null);
useEffect(() => {
if (process.env.NEXT_PUBLIC_ENV === "development") {
@@ -38,6 +39,8 @@ const App = () => {
webRTC?.peer?.send(JSON.stringify({ cmd: "STOP" }));
setStream(null);
}}
topics={webSockets.topics}
useActiveTopic={useActiveTopic}
/>
<hr />
@@ -48,6 +51,7 @@ const App = () => {
topics={webSockets.topics}
stream={stream}
disconnected={disconnected}
useActiveTopic={useActiveTopic}
/>
</div>
);