Default

Function: default()

[object Object]

Defined in: app/components/DashboardHeader.tsx:50

The primary hero section for the user dashboard.

This component provides a high-level summary of the user's account status, including:

  • Greeting: Personalized welcome message.
  • Activity Stats: Counts of upcoming and past enrollments.
  • Financial Summary: Outstanding balance calculation with a "Pay" action that handles redirecting to a checkout URL.
  • Next Activity Highlight: A specialized card showing details and a quick-link to the most immediate upcoming event.

It manages its own data fetching state for payments and enrollment totals.

Parameters

props

[object Object]

The component properties.

Returns

[object Object]

Component

On this page