11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
|
|
"use client";
|
||
|
|
import { createTypedHooks } from "easy-peasy";
|
||
|
|
|
||
|
|
import { StoreModel } from "@appTypes/StoreModel";
|
||
|
|
|
||
|
|
export const typedHooks = createTypedHooks<StoreModel>();
|
||
|
|
|
||
|
|
export const useStoreActions = typedHooks.useStoreActions;
|
||
|
|
export const useStoreDispatch = typedHooks.useStoreDispatch;
|
||
|
|
export const useStoreState = typedHooks.useStoreState;
|