UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

51 lines (50 loc) 1.33 kB
import { SCLessonActionsType } from '../../types'; import { SCCourseLessonType, SCCourseSectionType, SCCourseType } from '@selfcommunity/types'; import { LessonEditFormProps } from '../LessonEditForm'; import { LessonCommentObjectsProps } from '../LessonCommentObjects'; export interface LessonDrawerProps { /** * The course obj */ course: SCCourseType; /** * The lesson obj */ lesson: SCCourseLessonType; /** * The edit mode * @default false */ editMode: boolean; /** * The preview mode * @default false */ previewMode: boolean; /** * The active panel */ activePanel: SCLessonActionsType | null; /** * Callback to handle drawer closing */ handleClose: () => void; /** * Callback fired when the lesson change */ handleChangeLesson: (lesson: SCCourseLessonType, section: SCCourseSectionType) => void; /*** * The LessonEditFormProps */ LessonEditFormProps: LessonEditFormProps; /** * The props to spread to lesson comment objs component * @default {} */ LessonCommentObjectsProps?: LessonCommentObjectsProps; /** * Any other properties */ [p: string]: any; } export default function LessonDrawer(inProps: LessonDrawerProps): JSX.Element;