in libs/core/src/lib/renderer/components/Disguise.ts [51:62]
private _isReactContentOnlyChild(): boolean {
const { children } = this.props;
if (React.Children.count(children) === 1) {
const [onlyChild] = React.Children.toArray(children);
if (typeof onlyChild === 'object' && (<ReactElement<any>>onlyChild).type === ReactContent) {
return true;
}
}
return false;
}