17 |
18 |
19 |

20 |
21 |
CodeBattle Extension Options
22 |
23 |
24 | );
25 |
26 | const Body = () => {
27 | const { state, dispatch } = useContext(ContextApp);
28 | const { flashing, showNotifications } = state.toggles;
29 |
30 | const handleChangeSetToggle = (name, checked) => () => {
31 | dispatch({
32 | type: 'setToggle',
33 | payload: { [name]: !checked },
34 | });
35 | };
36 | const handleChangeSetShowNotification = (name, checked) => () => {
37 | dispatch({
38 | type: 'setShowNotification',
39 | payload: { [name]: !checked },
40 | });
41 | };
42 | return (
43 |