{#snippet urlInputSection()} {#if targetUrl}
{targetUrl}
{#if status === 'idle'} {/if} {:else}

No URL detected. Open this app via Instagram Share Menu.

Debug: Text={sharedText} URL={sharedUrl}
{/if} {/snippet} {#snippet progressIndicator()} {#if status === 'extracting'}
Extracting data...
{/if} {/snippet} {#snippet extractedTextViewer()} {#if bodyText}
📝 View Extracted Text
{bodyText}
{/if} {/snippet} {#snippet recipeCard()} {#if recipe}

{recipe.name}

{recipe.description}

Servings: {recipe.servings}

Ingredients

Steps

    {#each recipe.steps as step}
  1. {step}
  2. {/each}
{#if tandoorEnabled}

Tandoor Integration

{#if tandoorError}
Error: {tandoorError}
{/if}
{/if}
{/if} {/snippet} {#snippet errorState()} {#if status === 'error' && bodyText}

Extraction Error - Raw Text Available

📝 View Extracted Text
{bodyText}
{/if} {/snippet} {#snippet logViewer()}
System Logs
{#if currentMethod}
⚡ Current: {currentMethod}
{/if}
{#each logs as log}
> {log}
{/each} {#if status === 'extracting'}
> Processing...
{/if}
{/snippet}

InstaChef PWA

{@render urlInputSection()} {@render progressIndicator()} {@render extractedTextViewer()} {@render recipeCard()} {@render errorState()} {@render logViewer()}