import { storeContext } from "./StoreProvider" ; import { RootStoreType } from "../stores/root.store" ; import { useStoreData } from "./useStoreData" ; export const useRootData = < Selection > ( dataSelector ) => useStoreData ( storeContext , contextData => contextData ! , dataSelector ) ;