diff --git a/pages/deploy/[[...slug]].tsx b/pages/deploy/[[...slug]].tsx
index 3071c93..c26cb40 100644
--- a/pages/deploy/[[...slug]].tsx
+++ b/pages/deploy/[[...slug]].tsx
@@ -1,8 +1,37 @@
-import Container from "../../components/Container";
+import React from "react";
+import dynamic from "next/dynamic";
+import Flex from "../../components/Flex";
+import { useSnapshot } from "valtio";
+import { state } from "../../state";
+
+const DeployEditor = dynamic(() => import("../../components/DeployEditor"), {
+ ssr: false,
+});
+
+const Accounts = dynamic(() => import("../../components/Accounts"), {
+ ssr: false,
+});
+
+const LogBox = dynamic(() => import("../../components/LogBox"), {
+ ssr: false,
+});
const Deploy = () => {
+ const snap = useSnapshot(state);
return (
- This will be the deploy page
+ <>
+
+
+
+
+
+ (state.deployLogs = [])}
+ />
+
+ >
);
};
diff --git a/pages/develop/[[...slug]].tsx b/pages/develop/[[...slug]].tsx
index 623b41e..bd3d1a1 100644
--- a/pages/develop/[[...slug]].tsx
+++ b/pages/develop/[[...slug]].tsx
@@ -1,22 +1,69 @@
import dynamic from "next/dynamic";
+import { useSnapshot } from "valtio";
+import Hotkeys from "react-hot-keys";
+import { Play } from "phosphor-react";
import type { NextPage } from "next";
+import { compileCode, state } from "../../state";
+import Button from "../../components/Button";
+import Box from "../../components/Box";
const HooksEditor = dynamic(() => import("../../components/HooksEditor"), {
ssr: false,
});
-const Footer = dynamic(() => import("../../components/Footer"), {
+const LogBox = dynamic(() => import("../../components/LogBox"), {
ssr: false,
});
const Home: NextPage = () => {
+ const snap = useSnapshot(state);
return (
<>
-
+
+ {snap.files[snap.active]?.name?.split(".")?.[1].toLowerCase() ===
+ "c" && (
+
+ !snap.compiling && snap.files.length && compileCode(snap.active)
+ }
+ >
+
+
+ )}
-
+
+ (state.logs = [])}
+ logs={snap.logs}
+ />
+
>
);
};