9 lines
351 B
TypeScript
9 lines
351 B
TypeScript
import { createTypedHooks } from 'easy-peasy';
|
|
import { ApplicationStore } from '@/state/index';
|
|
|
|
const hooks = createTypedHooks<ApplicationStore>();
|
|
|
|
export const useStore = hooks.useStore;
|
|
export const useStoreState = hooks.useStoreState;
|
|
export const useStoreActions = hooks.useStoreActions;
|
|
export const useStoreDispatch = hooks.useStoreDispatch;
|