nsarrazin HF staff commited on
Commit
8a3914c
1 Parent(s): 3fd838e

types fix in SettingsModal.svelte

Browse files
src/lib/components/SettingsModal.svelte CHANGED
@@ -4,13 +4,13 @@
4
  import Modal from "$lib/components/Modal.svelte";
5
  import CarbonClose from "~icons/carbon/close";
6
  import Switch from "$lib/components/Switch.svelte";
7
- import type { Settings } from "$lib/types/Settings";
8
  import { enhance } from "$app/forms";
9
  import { base } from "$app/paths";
10
  import { PUBLIC_APP_DATA_SHARING } from "$env/static/public";
11
  import type { Model } from "$lib/types/Model";
 
12
 
13
- export let settings: Settings;
14
  export let models: Array<Model>;
15
 
16
  let shareConversationsWithModelAuthors = settings.shareConversationsWithModelAuthors;
 
4
  import Modal from "$lib/components/Modal.svelte";
5
  import CarbonClose from "~icons/carbon/close";
6
  import Switch from "$lib/components/Switch.svelte";
 
7
  import { enhance } from "$app/forms";
8
  import { base } from "$app/paths";
9
  import { PUBLIC_APP_DATA_SHARING } from "$env/static/public";
10
  import type { Model } from "$lib/types/Model";
11
+ import type { LayoutData } from "../../routes/$types";
12
 
13
+ export let settings: LayoutData["settings"];
14
  export let models: Array<Model>;
15
 
16
  let shareConversationsWithModelAuthors = settings.shareConversationsWithModelAuthors;