SettingsModal.svelte 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script>
  2. import { getContext } from 'svelte';
  3. import Modal from '../common/Modal.svelte';
  4. import Database from './Settings/Database.svelte';
  5. import General from './Settings/General.svelte';
  6. import Users from './Settings/Users.svelte';
  7. import Banners from '$lib/components/admin/Settings/Banners.svelte';
  8. import { toast } from 'svelte-sonner';
  9. import Pipelines from './Settings/Pipelines.svelte';
  10. const i18n = getContext('i18n');
  11. export let show = false;
  12. let selectedTab = 'general';
  13. </script>
  14. <Modal bind:show>
  15. <div>
  16. <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
  17. <div class=" text-lg font-medium self-center">{$i18n.t('Admin Settings')}</div>
  18. <button
  19. class="self-center"
  20. on:click={() => {
  21. show = false;
  22. }}
  23. >
  24. <svg
  25. xmlns="http://www.w3.org/2000/svg"
  26. viewBox="0 0 20 20"
  27. fill="currentColor"
  28. class="w-5 h-5"
  29. >
  30. <path
  31. d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
  32. />
  33. </svg>
  34. </button>
  35. </div>
  36. </div>
  37. </Modal>