import type { FeaturesState, FeaturesStore } from './store' import { createContext, useState } from 'react' import { createFeaturesStore } from './store' export const FeaturesContext = createContext(null) type FeaturesProviderProps = { children: React.ReactNode } & Partial export const FeaturesProvider = ({ children, ...props }: FeaturesProviderProps) => { const [store] = useState(() => createFeaturesStore(props)) return {children} }