import {printStore} from 'react-devtools-shared/src/devtools/utils';
export function test(maybeState) {
if (maybeState === null || typeof maybeState !== 'object') {
return false;
}
const hasOwnProperty = Object.prototype.hasOwnProperty.bind(maybeState);
return (
hasOwnProperty('inspectedElementID') &&
hasOwnProperty('ownerFlatTree') &&
hasOwnProperty('ownerSubtreeLeafElementID')
);
}
export function print(state, serialize, indent) {
const store = global.store;
return printStore(store, false, state);
}