From e9cf8dd42f7c04c592155d7601e52cdaa54fa424 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Thu, 9 Jan 2025 17:35:02 -0500
Subject: feat: web content view in plugin test

---
 src/index.tsx | 56 ++++++++++++--------------------------------------------
 1 file changed, 12 insertions(+), 44 deletions(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index 16cd6cb..eee47c8 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -29,52 +29,20 @@ const add = callable<[first: number, second: number], number>("add");
 const startTimer = callable<[], void>("start_timer");
 
 function Content() {
-  const [result, setResult] = useState<number | undefined>();
-
-  const onClick = async () => {
-    const result = await add(Math.random(), Math.random());
-    setResult(result);
-  };
-
   return (
-    <PanelSection title="Panel Section">
-      <PanelSectionRow>
-        <ButtonItem
-          layout="below"
-          onClick={onClick}
-        >
-          {result ?? "Add two numbers via Python"}
-        </ButtonItem>
-      </PanelSectionRow>
-      <PanelSectionRow>
-        <ButtonItem
-          layout="below"
-          onClick={() => startTimer()}
-        >
-          {"Start Python timer"}
-        </ButtonItem>
-      </PanelSectionRow>
-
-      {/* <PanelSectionRow>
-        <div style={{ display: "flex", justifyContent: "center" }}>
-          <img src={logo} />
-        </div>
-      </PanelSectionRow> */}
-
-      {/*<PanelSectionRow>
-        <ButtonItem
-          layout="below"
-          onClick={() => {
-            Navigation.Navigate("/decky-plugin-test");
-            Navigation.CloseSideMenus();
-          }}
-        >
-          Router
-        </ButtonItem>
-      </PanelSectionRow>*/}
-    </PanelSection>
+    <div style={{ width: "100%", height: "100%" }}>
+      <iframe
+        src="https://example.com" // Replace with your desired URL
+        style={{
+          width: "100%",
+          height: "100%",
+          border: "none",
+        }}
+        title="WebPage Viewer"
+      ></iframe>
+    </div>
   );
-};
+}
 
 export default definePlugin(() => {
   console.log("Template plugin initializing, this is called once on frontend startup")
-- 
cgit v1.2.3

