2024-03-05 10:44:37 +00:00
|
|
|
<script>
|
|
|
|
import { getContext } from 'svelte';
|
2024-10-02 14:44:07 +00:00
|
|
|
|
|
|
|
export let title = '';
|
2024-03-05 10:44:37 +00:00
|
|
|
const i18n = getContext('i18n');
|
|
|
|
</script>
|
|
|
|
|
2024-01-08 07:43:32 +00:00
|
|
|
<div class=" text-center text-6xl mb-3">📄</div>
|
2024-10-02 14:44:07 +00:00
|
|
|
<div class="text-center dark:text-white text-2xl font-semibold z-50">
|
|
|
|
{#if title}
|
|
|
|
{title}
|
|
|
|
{:else}
|
|
|
|
{$i18n.t('Add Files')}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2024-01-08 07:43:32 +00:00
|
|
|
|
2024-02-01 21:17:47 +00:00
|
|
|
<slot
|
|
|
|
><div class=" mt-2 text-center text-sm dark:text-gray-200 w-full">
|
2024-03-05 10:44:37 +00:00
|
|
|
{$i18n.t('Drop any files here to add to the conversation')}
|
2024-02-01 21:17:47 +00:00
|
|
|
</div>
|
|
|
|
</slot>
|