Default
Function: default()
[object Object]
Defined in: app/components/Announcement/AnnouncementTile.tsx:40
A detailed tile component for displaying an individual association announcement.
Features:
- Markdown Support: Renders the announcement body text using a specialized
Markdown component with tailored typography styles.
- Administrative Controls: Automatically displays a floating edit button if the authenticated user is a member of the Board or Candidate Board.
- Metadata Display: Shows the creation date and the name of the announcer with accompanying icons for better scannability.
- Responsive Design: Uses a flexible header layout that ensures the title and date/controls do not overlap on smaller screens.
Parameters
props
The component props.
announcement
The announcement data object including title, content, and metadata.
className?
[object Object]
Optional CSS classes to override or extend the root container styling.
Returns
[object Object]
Component
Example
<AnnouncementTile
announcement={announcementData}
className="shadow-lg"
/>