This commit is contained in:
Timothy Jaeryang Baek
2026-07-15 04:39:37 -04:00
parent 91277726cd
commit 1760b073c7
5 changed files with 84 additions and 21 deletions
@@ -1,5 +1,7 @@
<script lang="ts">
import { onMount, tick, getContext } from 'svelte';
import type { Writable } from 'svelte/store';
import type { i18n as i18nType } from 'i18next';
import Textarea from '$lib/components/common/Textarea.svelte';
import { toast } from 'svelte-sonner';
@@ -31,13 +33,13 @@
export let onSubmit: Function;
export let edit = false;
export let prompt = null;
export let prompt: any = null;
export let clone = false;
export let disabled = false;
export let modal = false;
export let onCancel: Function = () => {};
const i18n = getContext('i18n');
const i18n = getContext<Writable<i18nType>>('i18n');
let loading = false;
let showEditModal = false;