From 49f1ef221894acffc9d16fbc9ff6d8922a9fe0ff Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 7 Jun 2024 10:45:20 -0700 Subject: [PATCH] add entry provider --- .../StarterPack/StarterPackEntryProvider.tsx | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/components/StarterPack/StarterPackEntryProvider.tsx diff --git a/src/components/StarterPack/StarterPackEntryProvider.tsx b/src/components/StarterPack/StarterPackEntryProvider.tsx new file mode 100644 index 0000000000..6651ed28ab --- /dev/null +++ b/src/components/StarterPack/StarterPackEntryProvider.tsx @@ -0,0 +1,26 @@ +import React from 'react' + +interface IStarterPackEntryContext { + isReady?: boolean + starterPackId?: string +} + +const StarterPackEntryContext = React.createContext({ + isReady: false, +}) +export const useStarterPackEntry = () => + React.useContext(StarterPackEntryContext) + +export function StarterPackEntryProvider() { + const [state] = React.useState({ + isReady: false, + }) + + React.useEffect(() => {}, []) + + return ( + + {children} + + ) +}