import { observer } from 'mobx-react-lite'; import Stack from '@mui/material/Stack'; import ToggleButton from '@mui/material/ToggleButton'; import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'; import CheckIcon from '@mui/icons-material/Check'; import FormatListNumberedIcon from '@mui/icons-material/FormatListNumbered'; import RedoIcon from '@mui/icons-material/Redo'; import SearchIcon from '@mui/icons-material/Search'; import UndoIcon from '@mui/icons-material/Undo'; import React from 'react'; import { useRootStore } from '../RootStore'; export const EditorButtons = observer(() => { const { editorStore } = useRootStore(); return ( editorStore.undo()} aria-label="Undo" value="undo" > editorStore.redo()} aria-label="Redo" value="redo" > editorStore.toggleLineNumbers()} aria-label="Show line numbers" value="show-line-numbers" > editorStore.toggleSearchPanel()} aria-label="Show find/replace" value="show-search-panel" > editorStore.toggleLintPanel()} aria-label="Show errors and warnings" value="show-lint-panel" > ); });