This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect, useRef } from 'react'; | |
const Editor = ({ | |
files, | |
file, | |
lintMessages, | |
clearLintMessage, | |
updateLintMessage, | |
lintWarning, | |
collapseSidebar, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect, useRef } from 'react'; | |
import CodeMirror from 'codemirror'; | |
import debounce from 'lodash.debounce'; | |
import Fuse from 'fuse.js'; | |
import { StackTrace } from 'stacktrace-js'; | |
import classNames from 'classnames'; | |
import MediaQuery from 'react-responsive'; | |
import IconButton from './IconButton'; | |
import Timer from './Timer'; | |
import UnsavedChangesIndicator from './UnsavedChangesIndicator'; |