Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (
<span class="node-name-container">
{type === NORMAL_CLOSING ? '{name}</span>
{type === SELF_CLOSING ? ' />' : '>'}
);
}
}
NodeName.PROPS = {
name: Config.string(),
type: Config.oneOf([OPENING, NORMAL_CLOSING, SELF_CLOSING]).value(OPENING)
};
export default NodeName;
setStateFn={setStateFn}
typeColors={theme === 'dark' ? DARK_TYPE_COLORS : undefined}
/>
);
}
}
App.PROPS = {
highlightDOM: Config.func(),
inspectDOM: Config.func(),
onComponentExpand: Config.func(),
onSelectedChange: Config.func(),
port: Config.any(),
setStateFn: Config.func(),
theme: Config.oneOf(['dark', 'light']).value('light')
};
App.STATE = {
firstColumnWidth: Config.number(),
freezeUpdates: Config.value(false),
rootComponents: Config.value({}),
selectedComponent: Config.value({})
};
export default App;