ENGLISH·COURSE API
    Preparing search index...
    EnrollmentWelcomeModal: FC<EnrollmentWelcomeModalProps & NiceModalHocProps> = ...

    Welcomes a learner who just enrolled from the course page: the poster of the video the course starts with, an Enrolled mark, and the way in (capability enrollment-welcome).

    Shown imperatively with NiceModal.show(EnrollmentWelcomeModal, props) by the course page's enroll action, at once, before the server answers. Its primary action is CourseStartLink, the same link the page shows once joined, so the two cannot disagree; Keep exploring closes the dialog and leaves the learner on the course page. A course without videos shows no poster, names no video and offers only Keep exploring.

    The enrollment is optimistic. When the server refuses it and the store withdraws the course, the dialog closes on its own rather than congratulate a learner who is not enrolled.

    The poster is decoration and hidden from assistive technology. The promise settles with undefined on every way out.

    void NiceModal.show(EnrollmentWelcomeModal, { view, focusOnClose: () => action.focus() });