2025-10-23 20:51:59 +03:00
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
|
import type {TypedUseSelectorHook} from 'react-redux';
|
|
|
|
|
import type { RootState, AppDispatch } from './store';
|
|
|
|
|
|
2025-10-25 16:37:08 +03:00
|
|
|
export const useAppDispatch = () => useDispatch<AppDispatch>();
|
2025-10-23 20:51:59 +03:00
|
|
|
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
|