{$i18n.t('Prompts')} | {$WEBUI_NAME}
{$i18n.t('Prompts')}

{#each $prompts.filter((p) => query === '' || p.command.includes(query)) 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]); }} />
{$i18n.t('Made by OpenWebUI Community')}
{$i18n.t('Discover a prompt')}
{$i18n.t('Discover, download, and explore custom prompts')}
{ deleteHandler(deletePrompt); }} >
{$i18n.t('This will delete')} {deletePrompt.command}.