AddFilesPlaceholder.svelte 581 B

12345678910111213141516171819202122232425262728
  1. <script>
  2. import { getContext } from 'svelte';
  3. export let title = '';
  4. export let content = '';
  5. const i18n = getContext('i18n');
  6. </script>
  7. <div class="px-3">
  8. <div class="text-center text-6xl mb-3">📄</div>
  9. <div class="text-center dark:text-white text-xl font-semibold z-50">
  10. {#if title}
  11. {title}
  12. {:else}
  13. {$i18n.t('Add Files')}
  14. {/if}
  15. </div>
  16. <slot
  17. ><div class="px-2 mt-2 text-center text-sm dark:text-gray-200 w-full">
  18. {#if content}
  19. {content}
  20. {:else}
  21. {$i18n.t('Drop any files here to add to the conversation')}
  22. {/if}
  23. </div>
  24. </slot>
  25. </div>