From 3e92c2496868d7905b58be87925f5835965c6bda Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 16 Feb 2022 15:15:47 -0300
Subject: settings new design

---
 .../src/components/JustInDevMode.tsx                         | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 packages/taler-wallet-webextension/src/components/JustInDevMode.tsx

(limited to 'packages/taler-wallet-webextension/src/components/JustInDevMode.tsx')

diff --git a/packages/taler-wallet-webextension/src/components/JustInDevMode.tsx b/packages/taler-wallet-webextension/src/components/JustInDevMode.tsx
new file mode 100644
index 000000000..d447f87eb
--- /dev/null
+++ b/packages/taler-wallet-webextension/src/components/JustInDevMode.tsx
@@ -0,0 +1,12 @@
+import { ComponentChildren, Fragment, h, VNode } from "preact";
+import { useDevContext } from "../context/devContext";
+
+export function JustInDevMode({
+  children,
+}: {
+  children: ComponentChildren;
+}): VNode {
+  const { devMode } = useDevContext();
+  if (!devMode) return <Fragment />;
+  return <Fragment>{children}</Fragment>;
+}
-- 
cgit v1.2.3

