diff --git a/src/library-authoring/common/context.tsx b/src/library-authoring/common/context.tsx index d5c4228ec1..ef1fb7ef1c 100644 --- a/src/library-authoring/common/context.tsx +++ b/src/library-authoring/common/context.tsx @@ -104,10 +104,9 @@ export type LibraryContextData = { // Current collection openCollectionInfoSidebar: (collectionId: string, additionalAction?: SidebarAdditionalActions) => void; // Editor modal - for editing some component - /** If the editor is open and the user is editing some component, this is its usageKey - and the callback function that should be called on closing the editor. - */ + /** If the editor is open and the user is editing some component, this is the component being edited. */ componentBeingEdited: ComponentEditorInfo | undefined; + /** If an onClose callback is provided, it will be called when the editor is closed. */ openComponentEditor: (usageKey: string, onClose?: () => void) => void; closeComponentEditor: () => void; resetSidebarAdditionalActions: () => void;