add entry provider

This commit is contained in:
Hailey
2024-06-07 10:45:20 -07:00
parent 9dc39f51bf
commit 49f1ef2218
@@ -0,0 +1,26 @@
import React from 'react'
interface IStarterPackEntryContext {
isReady?: boolean
starterPackId?: string
}
const StarterPackEntryContext = React.createContext<IStarterPackEntryContext>({
isReady: false,
})
export const useStarterPackEntry = () =>
React.useContext(StarterPackEntryContext)
export function StarterPackEntryProvider() {
const [state] = React.useState<IStarterPackEntryContext>({
isReady: false,
})
React.useEffect(() => {}, [])
return (
<StarterPackEntryContext.Provider value={state}>
{children}
</StarterPackEntryContext.Provider>
)
}