{#if attachments.length > 0}
{#each attachments as attachment}
onRemove(attachment.id)} class="absolute -right-1 -top-1 hidden rounded-full bg-red-500 p-0.5 text-white group-hover:block" aria-label="Remove attachment" data-testid="remove-attachment" >
{/each}
{/if}
(dragOver = false)} role="button" tabindex="0" data-testid="upload-dropzone" > {#if uploading}
Uploading...
{:else}
Drop images here or
browse
handleFiles((e.target as HTMLInputElement).files)} data-testid="file-input" />
{/if}