{$i18n.t('Prompts')} | {$WEBUI_NAME} { deleteHandler(deletePrompt); }} >
{$i18n.t('This will delete')} {deletePrompt.command}.
{$i18n.t('Prompts')}
{filteredItems.length}
{#each filteredItems as prompt}
{ shareHandler(prompt); }} cloneHandler={() => { cloneHandler(prompt); }} exportHandler={() => { exportHandler(prompt); }} deleteHandler={async () => { deletePrompt = prompt; showDeleteConfirm = true; }} onClose={() => {}} >
{/each}
{ console.log(importFiles); const reader = new FileReader(); reader.onload = async (event) => { const savedPrompts = JSON.parse(event.target.result); console.log(savedPrompts); for (const prompt of savedPrompts) { await createNewPrompt( localStorage.token, prompt.command.charAt(0) === '/' ? prompt.command.slice(1) : prompt.command, prompt.title, prompt.content ).catch((error) => { toast.error(error); return null; }); } await prompts.set(await getPrompts(localStorage.token)); }; reader.readAsText(importFiles[0]); }} />
{#if $config?.features.enable_community_sharing}
{$i18n.t('Made by OpenWebUI Community')}
{$i18n.t('Discover a prompt')}
{$i18n.t('Discover, download, and explore custom prompts')}
{/if}