Files
classroomio/src/lib/components/Courses/store.js
T

26 lines
502 B
JavaScript
Raw Normal View History

2021-08-18 19:47:02 +03:00
import { writable } from 'svelte/store';
export const courses = writable([]);
2021-12-30 22:30:30 +02:00
export const courseMetaDeta = writable({
isLoading: true
2021-12-30 22:30:30 +02:00
});
2021-08-18 19:47:02 +03:00
export const createCourseModal = writable({
open: false,
title: '',
description: '',
emails: '',
tutors: '',
students: ''
2021-08-18 19:47:02 +03:00
});
2021-12-30 22:30:30 +02:00
export const copyCourseModalInitialState = {
open: false,
courseIdToCopy: null,
id: '',
title: '',
isSaving: false,
error: null
2021-12-30 22:30:30 +02:00
};
export const copyCourseModal = writable({ ...copyCourseModalInitialState });