diff --git a/src/lib/components/chat/Artifacts.svelte b/src/lib/components/chat/Artifacts.svelte index 6df05ade0..5e4699a54 100644 --- a/src/lib/components/chat/Artifacts.svelte +++ b/src/lib/components/chat/Artifacts.svelte @@ -6,7 +6,7 @@ import { showArtifacts, showControls } from '$lib/stores'; import XMark from '../icons/XMark.svelte'; - import { createMessagesList } from '$lib/utils'; + import { copyToClipboard, createMessagesList } from '$lib/utils'; export let overlay = false; export let history; @@ -15,6 +15,7 @@ let contents: Array<{ content: string }> = []; let selectedContentIdx = 0; + let copied = false; let iframeElement: HTMLIFrameElement; $: if (history) { @@ -239,6 +240,20 @@ + +