"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "8fa2124ac25803d38703750f2f3ff21ec12b81c0"
ShareChatModal.svelte 913 Bytes
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script lang="ts">
	import Modal from '../common/Modal.svelte';

	export let downloadChat: Function;
	export let shareChat: Function;

	export let show = false;
</script>

<Modal bind:show size="xs">
	<div class="px-4 pt-4 pb-5 w-full flex flex-col justify-center">
		<button
			class=" self-center px-8 py-1.5 w-full rounded-full text-sm font-medium bg-blue-600 hover:bg-blue-500 text-white"
			type="button"
			on:click={() => {
				shareChat();
				show = false;
			}}
		>
Timothy J. Baek's avatar
Timothy J. Baek committed
20
			Share to OpenWebUI Community
Timothy J. Baek's avatar
Timothy J. Baek committed
21
22
23
		</button>

		<div class="flex justify-center space-x-1 mt-1.5">
Timothy J. Baek's avatar
Timothy J. Baek committed
24
			<div class=" self-center text-gray-400 text-xs font-medium">or</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
25
26

			<button
Timothy J. Baek's avatar
Timothy J. Baek committed
27
				class=" self-center rounded-full text-xs font-medium text-gray-700 dark:text-gray-500 underline"
Timothy J. Baek's avatar
Timothy J. Baek committed
28
29
30
31
32
33
34
35
36
37
38
				type="button"
				on:click={() => {
					downloadChat();
					show = false;
				}}
			>
				Download as a File
			</button>
		</div>
	</div>
</Modal>