Create new
{#each NEW_ITEMS as item} {@const enabled = item.command ? $commandsCustomized[item.command]?.enabled : item.testEnabled ? item.testEnabled() : true} { if (!enabled) return; closeCurrentModal(); if (item.action) { item.action(); } else if (item.command) { runCommand(item.command); } if (item.changeWidget) { $selectedWidget = item.changeWidget; } }} /> {/each}