{#if !showNoTools}
{#if showFileUpload} {@const mimeTypesString = mimeTypes .map((m) => { // if the mime type ends in *, grab the first part so image/* becomes image if (m.endsWith("*")) { return m.split("/")[0]; } // otherwise, return the second part for example application/pdf becomes pdf return m.split("/")[1]; }) .join(", ")}
{/if}
{/if} {@render children?.()}