diff --git a/packages/client/src/components/CanvasWrapper.tsx b/packages/client/src/components/CanvasWrapper.tsx
index 4103967..e869fca 100644
--- a/packages/client/src/components/CanvasWrapper.tsx
+++ b/packages/client/src/components/CanvasWrapper.tsx
@@ -6,7 +6,7 @@ import { RendererContext } from "@sc07-canvas/lib/src/renderer/RendererContext";
import { ViewportMoveEvent } from "@sc07-canvas/lib/src/renderer/PanZoom";
import throttle from "lodash.throttle";
import { IPosition } from "@sc07-canvas/lib/src/net";
-import { Template } from "./Template";
+import { Template } from "./Templating/Template";
import { IRouterData, Router } from "../lib/router";
import { KeybindManager } from "../lib/keybinds";
import { BlankOverlay } from "./Overlay/BlankOverlay";
diff --git a/packages/client/src/components/Settings/TemplateSettings.tsx b/packages/client/src/components/Settings/TemplateSettings.tsx
index f6666de..0bc7f01 100644
--- a/packages/client/src/components/Settings/TemplateSettings.tsx
+++ b/packages/client/src/components/Settings/TemplateSettings.tsx
@@ -15,6 +15,8 @@ export const TemplateSettings = () => {
setY,
opacity,
setOpacity,
+ showMobileTools,
+ setShowMobileTools,
} = useTemplateContext();
return (
@@ -68,6 +70,13 @@ export const TemplateSettings = () => {
onChange={(v) => setOpacity(v as number)}
getValue={(v) => v + "%"}
/>
+
+ Show Mobile Tools
+
>
);
diff --git a/packages/client/src/components/Templating/MobileTemplateButtons.tsx b/packages/client/src/components/Templating/MobileTemplateButtons.tsx
new file mode 100644
index 0000000..71580ba
--- /dev/null
+++ b/packages/client/src/components/Templating/MobileTemplateButtons.tsx
@@ -0,0 +1,18 @@
+import { Switch } from "@nextui-org/react";
+import { useTemplateContext } from "../../contexts/TemplateContext";
+
+export const MobileTemplateButtons = () => {
+ const { enable, setEnable, url } = useTemplateContext();
+
+ return (
+
+ {url && (
+
+
+ Template
+
+
+ )}
+
+ );
+};
diff --git a/packages/client/src/components/Template.scss b/packages/client/src/components/Templating/Template.scss
similarity index 100%
rename from packages/client/src/components/Template.scss
rename to packages/client/src/components/Templating/Template.scss
diff --git a/packages/client/src/components/Template.tsx b/packages/client/src/components/Templating/Template.tsx
similarity index 94%
rename from packages/client/src/components/Template.tsx
rename to packages/client/src/components/Templating/Template.tsx
index 840ca6e..1efdcce 100644
--- a/packages/client/src/components/Template.tsx
+++ b/packages/client/src/components/Templating/Template.tsx
@@ -1,8 +1,8 @@
import { useEffect, useRef } from "react";
-import { Template as TemplateCl } from "../lib/template";
-import { useAppContext } from "../contexts/AppContext";
-import { useTemplateContext } from "../contexts/TemplateContext";
-import { Canvas } from "../lib/canvas";
+import { Template as TemplateCl } from "../../lib/template";
+import { useAppContext } from "../../contexts/AppContext";
+import { useTemplateContext } from "../../contexts/TemplateContext";
+import { Canvas } from "../../lib/canvas";
export const Template = () => {
const { config } = useAppContext();
diff --git a/packages/client/src/components/Toolbar/CanvasMeta.tsx b/packages/client/src/components/Toolbar/CanvasMeta.tsx
index 80d0d90..b318c57 100644
--- a/packages/client/src/components/Toolbar/CanvasMeta.tsx
+++ b/packages/client/src/components/Toolbar/CanvasMeta.tsx
@@ -74,7 +74,7 @@ export const CanvasMeta = () => {
return (
<>
-