{@render children?.()} { const file = e.currentTarget.files?.[0]; if (!file) return; rootState.onUpload(file); // reset so that we can reupload the same file (e.target! as HTMLInputElement).value = ''; }} type="file" {id} style="display: none;" />