@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
41 lines (40 loc) • 1.03 kB
TypeScript
import { EditorProps } from '../Editor';
import { SCCourseLessonType, SCCourseType, SCMediaType } from '@selfcommunity/types';
export interface LessonObjectProps {
/**
* The lesson obj
*/
lesson: SCCourseLessonType;
/**
* The course obj
*/
course: SCCourseType;
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* The edit mode
* @default false
*/
editMode: boolean;
/**
* Callback fired when the lesson content on edit mode changes
*/
onContentChange?: (content: any) => void;
/**
* Callback fired when the lesson media on edit mode changes
*/
onMediaChange?: (medias: SCMediaType[]) => void | null;
/**
* Editor props
* @default {}
*/
EditorProps?: Omit<EditorProps, 'onFocus'>;
/**
* Any other properties
*/
[p: string]: any;
}
export default function LessonObject(inProps: LessonObjectProps): JSX.Element;