[MIRROR] tgchat part 1 (#7273)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
CHOMPStation2
2023-11-25 05:36:55 -07:00
committed by GitHub
parent 5e15494def
commit eb65b5721c
88 changed files with 6467 additions and 78 deletions

View File

@@ -0,0 +1,17 @@
/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/
import { useSelector, useDispatch } from 'common/redux';
import { selectAudio } from './selectors';
export const useAudio = (context) => {
const state = useSelector(context, selectAudio);
const dispatch = useDispatch(context);
return {
...state,
toggle: () => dispatch({ type: 'audio/toggle' }),
};
};