import { useDispatch, useSelector } from 'react-redux'; import type { RootState } from './index'; import type { TypedUseSelectorHook } from 'react-redux'; import type { AnyAction, ThunkDispatch } from '@reduxjs/toolkit'; // eslint-disable-next-line @typescript-eslint/no-explicit-any type AppDispatch = ThunkDispatch; export const useAppDispatch = () => useDispatch(); export const useAppSelector: TypedUseSelectorHook = useSelector;