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
NoContentTilewith a localized message. - Iterative Rendering: Maps through the
announcementsarray to generate individualAnnouncementTilecomponents, 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
An array of announcement objects fetched from the API to be displayed to the user.
Returns
[object Object]
Component
Example
<AnnouncementsList
announcements={latestAnnouncements}
/>