import { TypedUseSelectorHook , useSelector as useReduxSelector } from 'react-redux' ; import { DataStore } from '@types' ; import { AppState } from './root.reducer' ; export const getAppState = ( s ) : DataStore => s . database ; /**
 * Type-safe version of the `react-redux` useSelector hook.
 */ export const useSelector = useReduxSelector ;