{
  "version": 3,
  "sources": ["../../src/react/store/useSelector.ts"],
  "sourcesContent": ["import { getReactStore } from './getReactStore';\nimport { StoreType } from '../../store/store.types';\n\ntype ExtractState<S> = S extends { getState: () => infer T } ? T : StoreType;\n\nexport function useSelector<T>(\n  selector: (state: ExtractState<StoreType>) => T\n) {\n  const useStore = getReactStore();\n  return useStore(selector);\n}\n"],
  "mappings": "yCAKO,SAASA,EACdC,EACA,CAEA,OADiBC,EAAc,EACfD,CAAQ,CAC1B",
  "names": ["useSelector", "selector", "getReactStore"]
}
