mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-25 14:02:22 +02:00
6 lines
280 B
TypeScript
6 lines
280 B
TypeScript
import { useDispatch, useSelector, TypedUseSelectorHook } from 'react-redux';
|
|
import type { RootState, AppDispatch } from './state/store';
|
|
|
|
export const useAppDispatch = () => useDispatch<AppDispatch>();
|
|
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
|