import React from "react"; import { ActionManager } from "../actions/manager"; import { AppState } from "../types"; export const BackgroundPickerAndDarkModeToggle = ({ appState, setAppState, actionManager, showThemeBtn, }: { actionManager: ActionManager; appState: AppState; setAppState: React.Component["setState"]; showThemeBtn: boolean; }) => (
{actionManager.renderAction("changeViewBackgroundColor")} {showThemeBtn && actionManager.renderAction("toggleTheme")} {appState.fileHandle && (
{actionManager.renderAction("saveToActiveFile")}
)}
);