import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';
import { off, on } from './misc/util';
var isFocusedElementEditable = function () {
var activeElement = document.activeElement, body = document.body;
if (!activeElement) {
return false;
}
// If not element has focus, we assume it is not editable, too.
if (activeElement === body) {
return false;
}
// Assume and