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