

// import { useDispatch, useSelector, useStore } from 'react-redux';


// import type { TypedUseSelectorHook } from 'react-redux';

// import type { RootState, AppDispatch, AppStore } from './store';

// export const useAppDispatch: () => AppDispatch = useDispatch;
// export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
// export const useAppStore: () => AppStore = useStore;

import { useDispatch, useSelector, type TypedUseSelectorHook } from 'react-redux';
import { RootState, store } from "./store";

export const useAppDispatch: () => typeof store.dispatch = useDispatch;
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;