| import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux"; | |
| import type { RootState, AppDispatch } from "./store"; | |
| //Boilter plate hooks to work with typescript types + redux | |
| export const useAppDispatch = () => useDispatch<AppDispatch>(); | |
| export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector; |