ENGLISH·COURSE API
    Preparing search index...
    • Driving adapter: React component that calls the findNextLessonToRecommend use case and renders the recommendation.

      The use case is passed in as a prop — tests inject a stub, Storybook wires the in-memory adapters, and (later) a Next.js page wires its real adapters. The component never imports a domain port directly; ports are resolved by the calling site, preserving the hexágono.

      Parameters

      • __namedParameters: {
            courseId: string & $brand<"CourseId">;
            currentLessonId: string & $brand<"LessonId">;
            findNextLesson: FindNextLesson;
            getLessonHref?: (
                input: {
                    courseId: string & $brand<"CourseId">;
                    lessonId: string & $brand<"LessonId">;
                },
            ) => string;
        }
        • courseId: string & $brand<"CourseId">
        • currentLessonId: string & $brand<"LessonId">
        • findNextLesson: FindNextLesson
        • OptionalgetLessonHref?: (
              input: {
                  courseId: string & $brand<"CourseId">;
                  lessonId: string & $brand<"LessonId">;
              },
          ) => string

          Optional locale-aware path the "next lesson" link points to. The calling site (Storybook, Next.js page) supplies the real route once course routes are wired; defaults to "#" until then. Must return a path that the locale-aware <Link> can resolve.

      Returns Element