import { ElementType } from '../../../state'; type Context = { openAddElementModal: boolean; onOpenAddElement: () => void; onCloseAddElement: () => void; handleSetOnAdd: (cb: (type: ElementType) => void) => void; openRemoveSectionModal: boolean; onOpenRemoveSection: () => void; onCloseRemoveSection: () => void; handleSetOnRemove: (cb: () => void) => void; }; /** * Context provider for the section modal functionality. Provides single entry * points for section related modals, eg "Remove section" and "Add element" * functionality. * Creates a single `