@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
43 lines (42 loc) • 918 B
TypeScript
import { SCLessonActionsType } from '../../types';
export interface LessonAppbarProps {
/**
* The appbar title
*/
title: string;
/**
* If comments are enabled for the lesson showed
*/
showComments: boolean;
/**
* The edit mode
* @default false
*/
editMode: boolean;
/**
* onArrowBack Callback
*/
onArrowBackClick?: () => void;
/**
* onSaveCallback
*/
onSave: () => void;
/**
* The active panel
*/
activePanel: SCLessonActionsType | null;
/**
* Handles panel opening
* @param panel
*/
handleOpen: (panel: SCLessonActionsType) => void;
/**
* Indicates whether an update is currently in progress.
*/
updating: boolean;
/**
* Any other properties
*/
[p: string]: any;
}
export default function LessonAppbar(inProps: LessonAppbarProps): JSX.Element;