import { observer } from 'mobx-react-lite';
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import ButtonGroup from '@material-ui/core/ButtonGroup';
import Divider from '@material-ui/core/Divider';
import FormatListNumberedIcon from '@material-ui/icons/FormatListNumbered';
import RedoIcon from '@material-ui/icons/Redo';
import UndoIcon from '@material-ui/icons/Undo';
import ToggleButton from '@material-ui/lab/ToggleButton';
import { useRootStore } from '../RootStore';
const useStyles = makeStyles(theme => ({
iconButton: {
padding: 7,
minWidth: 36,
border: 0,
color: theme.palette.text.primary,
'&.MuiButtonGroup-groupedTextHorizontal': {
borderRight: 0,
},
},
divider: {
margin: theme.spacing(0.5),
}
}));
export default observer(() => {
const editorStore = useRootStore().editorStore;
const classes = useStyles();
return (
<>
editorStore.toggleLineNumbers()}
size='small'
className={classes.iconButton}
aria-label='Show line numbers'
>
>
);
});