import type { WebFeature } from "@stc/contracts"; /** Studio web routes. The pages call /api/studio, which allows only owners, authors and per-course authors. */ export const studioWeb: WebFeature = { name: "studio", routes: [ { path: "/studio", element: () => import("./ui/StudioHome"), nav: { label: "Studio", area: "header", roles: ["owner", "author"] } }, { path: "/studio/:courseId", element: () => import("./ui/CourseStudio") }, ], }; export { setLessonPreview, type LessonPreviewProps, type LessonPreviewComponent } from "./ui/preview";