import React from "react"; import { Action } from "./types"; import { ColorPicker } from "../components/ColorPicker"; import { getDefaultAppState } from "../appState"; import { trash } from "../components/icons"; import { ToolButton } from "../components/ToolButton"; export const actionChangeViewBackgroundColor: Action = { name: "changeViewBackgroundColor", perform: (elements, appState, value) => { return { appState: { ...appState, viewBackgroundColor: value } }; }, PanelComponent: ({ appState, updateData }) => { return (