{ timerRef.current = [el]; }} > { handlePrefUpdate( "widgets.focusTimer.showSystemNotifications", !showSystemNotifications ); }} /> { batch(() => { handlePrefUpdate("widgets.focusTimer.enabled", false); const telemetryData = { widget_name: "focus_timer", widget_source: "context_menu", enabled: false, widget_size: widgetsMayBeMaximized ? widgetSize : "medium", }; dispatch( ac.OnlyToMain({ type: at.WIDGETS_ENABLED, data: telemetryData, }) ); }); }} /> toggleType("focus")} /> toggleType("break")} /> setTimerDuration()} /> {isRunning && ( )} {!showSystemNotifications && !timerData[timerType].isRunning && ( )}