import { getCourseId } from "./utils-ENV.js"; export class Activity { id: number; title: string; constructor(id: number, title: string) { this.id = id; this.title = title; } async update(_text: string) {} } export class Course { id: Number; title: string; constructor(id: number, title: string) { this.id = id; this.title = title; } async getActivity(_name: string) { return null; } } export async function fetchCourse(courseId?: number) { if (typeof courseId === "undefined") { courseId = Number(getCourseId()); } return new Course(courseId, "Mock Course"); } export async function fetchCourses(_pattern: string) { return []; }