StudentCourses component.

This component is responsible for rendering the courses for a student. It performs the following operations:

  1. Fetches the user data from the UserContext.
  2. Fetches the course data for the user from the API.
  3. Renders the courses using the StudentCourseGrid component.
  4. Provides an option to show or hide ended courses.

If an error occurs while fetching the course data, it renders an error message.