{ goto(previousPage); }} class="z-10 flex flex-col content-center items-center gap-x-10 gap-y-3 overflow-hidden rounded-2xl bg-white p-4 pt-6 text-center shadow-2xl outline-none max-sm:w-[85dvw] max-sm:px-6 md:w-96 md:grid-cols-3 md:grid-rows-[auto,1fr] md:p-8" > {#if data.assistant.avatar}
{:else}
{data.assistant.name[0]}
{/if}
{data.assistant.name}
{#if data.assistant.description}
{data.assistant.description}
{/if} {#if data.assistant.createdByName}
Created by
{data.assistant.createdByName}
{/if}
{ goto(previousPage); }} > Cancel
{ return async ({ result }) => { // `result` is an `ActionResult` object if (result.type === "success") { $settings.activeModel = data.assistant._id; goto(`${base}`); } else { await applyAction(result); } }; }} >
Start chatting