{#if widget?.component}
{#if widget.headerLabel}
{ if (widget !== undefined) { closeWidget(widget._id) } }} >
{/if} { if (widget !== undefined) { closeWidget(widget._id) } }} />
{/if}
{#if widget !== undefined && tabs.length > 0} { void handleTabClose(e.detail, widget) }} on:open={(e) => { handleTabOpen(e.detail, widget) }} /> {/if}