Files
classroomio/src/utils/store/org.js
T

17 lines
383 B
JavaScript
Raw Normal View History

2023-05-20 23:53:28 +00:00
import { writable, derived } from 'svelte/store';
export const orgs = writable([]);
2023-04-22 20:00:37 +00:00
export const currentOrg = writable({
id: '',
name: '',
shortName: '',
siteName: '',
2023-05-02 23:55:26 +00:00
avatar_url: '',
2023-04-22 20:00:37 +00:00
});
2023-04-23 22:28:18 +00:00
export const orgAudience = writable([]);
2023-05-02 23:55:26 +00:00
export const orgTeam = writable([]);
2023-05-20 23:53:28 +00:00
export const currentOrgPath = derived(
currentOrg,
($currentOrg) => `/org/${$currentOrg.siteName}`
);