Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public render(): React.ReactNode {
const { runtimeProps } = this.props;
if (!runtimeProps)
return null;
const { zoneDef } = runtimeProps;
let widgetElement: React.ReactNode;
// istanbul ignore else
if (runtimeProps.zone.widgets.length === 1) {
if (zoneDef.isToolSettings && isToolSettingsWidgetManagerProps(runtimeProps.widget) && runtimeProps.widget.mode === ToolSettingsWidgetMode.TitleBar) {
const widgetDef = zoneDef.getSingleWidgetDef();
const isClosed = widgetDef ? (widgetDef.state === WidgetState.Closed || widgetDef.state === WidgetState.Hidden) : false;
return (
public render(): React.ReactNode | undefined {
const className = classnames(
"uifw-tool-settings-content",
this.props.mode === ToolSettingsWidgetMode.TitleBar && "uifw-title-bar",
this.props.mode === ToolSettingsWidgetMode.Tab && "uifw-tab",
);
return (
{this.props.children}
<div>
</div>
<div></div>