{#snippet itemRow(item: DeployableItem, depth: number, subPath: string)}
{@const isSelectable = selectablePredicate(item)}
{@const isSelected = selectedItems.includes(item.key)}
{@const status = deploymentStatus[item.key]}
{@const isDeployed = status?.status === 'deployed'}
{@const blockedReason = !isSelectable && !isDeployed ? selectBlockedReason?.(item) : undefined}
{@const showPath =
isAgent?.(item) ||
(item.kind !== 'resource' && item.kind !== 'variable' && item.kind !== 'resource_type')}