From 37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e Mon Sep 17 00:00:00 2001
From: Frank <frank@sst.dev>
Date: Fri, 29 Aug 2025 23:32:17 -0400
Subject: wip: cloud

---
 cloud/web/src/util/context.tsx | 26 --------------------------
 1 file changed, 26 deletions(-)
 delete mode 100644 cloud/web/src/util/context.tsx

(limited to 'cloud/web/src/util/context.tsx')

diff --git a/cloud/web/src/util/context.tsx b/cloud/web/src/util/context.tsx
deleted file mode 100644
index d1c6f4e7f..000000000
--- a/cloud/web/src/util/context.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { ParentProps, Show, createContext, useContext } from "solid-js"
-
-export function createInitializedContext<
-  Name extends string,
-  T extends { ready: boolean },
->(name: Name, cb: () => T) {
-  const ctx = createContext<T>()
-
-  return {
-    use: () => {
-      const context = useContext(ctx)
-      if (!context) throw new Error(`No ${name} context`)
-      return context
-    },
-    provider: (props: ParentProps) => {
-      const value = cb()
-      return (
-        <Show when={value.ready}>
-          <ctx.Provider value={value} {...props}>
-            {props.children}
-          </ctx.Provider>
-        </Show>
-      )
-    },
-  }
-}
-- 
cgit v1.2.3

