UNPKG

@hirebus/academy

Version:

React component library for academy and learning platforms

20 lines (18 loc) 922 B
import { Course } from '../types/course'; export interface LearningManagementProps { creatorId: number; className?: string; initialCourses?: Course[]; onCreateCourse?: (course: Course) => Promise<Course | null>; onUpdateCourse?: (course: Course) => Promise<void>; onDeleteCourse?: (courseId: string) => Promise<void>; onFetchCourse?: (courseId: string) => Promise<Course | undefined>; onDeleteCourseFile?: ({ courseFileId, courseId, }: { courseFileId: string; courseId: string; }) => Promise<void>; onError?: (error: Error) => void; isLoading?: boolean; isCreatingCourse?: boolean; } export declare function LearningManagement({ creatorId, onCreateCourse, onUpdateCourse, onDeleteCourse, onFetchCourse, onDeleteCourseFile, onError, initialCourses, isLoading, isCreatingCourse, }: Readonly<LearningManagementProps>): import("react/jsx-runtime").JSX.Element;