analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
26 lines • 1.17 kB
TypeScript
/**
* SaveActivityModelModal component props
*/
export interface SaveActivityModelModalProps {
/** Whether the modal is open */
isOpen: boolean;
/** Callback to close the modal without saving */
onClose: () => void;
/** Callback called with the validated title when the user confirms */
onConfirm: (title: string) => void;
/** Disables actions and shows loading state on confirm button */
isLoading?: boolean;
/** Optional initial title value (used when editing an existing draft) */
initialTitle?: string;
}
/**
* Modal that prompts the user for a model title before saving as a reusable
* template. Generic — used both by ActivityCreate (ActivityType.MODELO) and
* RecommendedLessonCreate (RecommendedClassDraftType.MODELO) flows.
*
* Validates the title locally with the same constraints as the backend schema
* (1–255 characters after trimming).
*/
export declare const SaveActivityModelModal: ({ isOpen, onClose, onConfirm, isLoading, initialTitle, }: SaveActivityModelModalProps) => import("react/jsx-runtime").JSX.Element;
export default SaveActivityModelModal;
//# sourceMappingURL=SaveActivityModelModal.d.ts.map