1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00
Pterodactyl-Panel/resources/scripts/state/hooks.ts
2020-02-22 20:07:56 -08:00

10 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;