Default

Function: default()

[object Object]

Defined in: app/components/Announcement/AnnouncementsList.tsx:29

A vertical list component that renders a collection of association announcements.

Features:

  • Empty State Handling: Automatically detects if the announcement array is empty and renders a NoContentTile with a localized message.
  • Iterative Rendering: Maps through the announcements array to generate individual AnnouncementTile components, providing a unique key for each.
  • Responsive Layout: Uses a flex-column layout with standard gap spacing to ensure a consistent vertical flow.

Parameters

props

The component props.

announcements

GetAnnouncementResponseDto[]

An array of announcement objects fetched from the API to be displayed to the user.

Returns

[object Object]

Component

Example

<AnnouncementsList
announcements={latestAnnouncements}
/>

On this page