CopyWeekOverview

Function: copyWeekOverview()

[object Object]

Defined in: app/routes/activities/activities.handlers.tsx:66

Generates a formatted text overview of the current/next week's activities and copies it to the user's clipboard for social media distribution.

Logic:

  • If today is Monday-Wednesday, it targets the current week.
  • If today is Thursday-Sunday, it targets the following week.
  • Formats output based on the user's locale (NL vs EN).

Parameters

locale

[object Object]

The user's current language preference.

activities

ActivityResponseDto[]

The full list of activities to filter from.

Returns

Promise<void>

Async

On this page