{#if !block}
Select a block to edit.
{:else}

{emailBlockLabels[block.type as EmailBlockType]}

{#if block.type === 'text'} updateData({ content })} />

Use placeholders like {'{{customer_first_name}}'} — see the list above.

{:else if block.type === 'image'}
updateData({ url: image.url, alt: image.alt })} /> updateData({ width: v })} formatLabel={(v) => `${v}%`} /> updateData({ alignment: v })} />

Images load from the public media server, so they only appear in real inboxes once the site runs on a public domain.

{:else if block.type === 'button'}
updateData({ alignment: v })} /> updateData({ color })} />
{:else if block.type === 'spacer'} {:else if block.type === 'divider'}

A thin horizontal line. No settings.

{:else}

{autoFilled[block.type]}

{/if}
{/if}