import { config } from './config' ; import { StoreCreator } from 'dream-redux' ; import { IStoreState } from '@/types/store' ; export const { store , persistor , useSelector : useDefaultSelector , commitMutation , } = new StoreCreator ( config ) ; export function useSelector < T > ( selector ) { return useDefaultSelector ( selector ) ; }