{#if uploadingImage} {#await import('$lib/components/lemmy/modal/ImageUploadModal.svelte') then { default: UploadModal }} { if (e.detail) data.url = e.detail uploadingImage = false }} /> {/await} {/if}

{edit ? 'Edit' : 'Create'} Post

{#if !edit && data}
Community * {#if data.community} {/if}
{ const c = e.detail if (!c) { data.community = null return } data.community = c.id communitySearch = `${c.name}@${new URL(c.actor_id).hostname}` }} />
{/if}
NSFW
{#if !edit} {/if}