DeleteEntityModalProps: {
    entityId: number;
    entityLmsId: number;
    entityName: string;
    entityType: string;
    onDeleteConfirm: ((entityId, extraId) => void);
    openDeleteEntityModal: boolean;
    setDeleteEntityModalOpen: ((value) => void);
}

Props for the DeleteEntityModal component.

Type declaration

  • entityId: number

    Unique internal ID of the entity.

  • entityLmsId: number

    External LMS-specific ID of the entity.

  • entityName: string

    Display name of the entity to be deleted (e.g., "Math 101").

  • entityType: string

    The type of entity being deleted (e.g., "Course", "Topic").

  • onDeleteConfirm: ((entityId, extraId) => void)
      • (entityId, extraId): void
      • Callback fired when the user confirms deletion.

        Parameters

        • entityId: number

          Internal ID.

        • extraId: number

          External LMS ID.

        Returns void

  • openDeleteEntityModal: boolean

    Controls the visibility of the delete modal.

  • setDeleteEntityModalOpen: ((value) => void)
      • (value): void
      • Callback to set the modal's open state.

        Parameters

        • value: SetStateAction<boolean>

          The new open state.

        Returns void

Generated using TypeDoc