NoticesSection
Renders notice items from additional_items. Shared by Blog, Guide, LiveStream, and Kickstart. Filters out items without a notice block.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
items | Array<{ uid?: string; notice?: Notice; $?: { notice?: CSLPFieldMapping } }> | Yes | - | additional_items from CMS entry |
Usage
import NoticesSection from '@/components/molecules/NoticesSection';
<NoticesSection items={entry.additional_items ?? []} />Features
- Notice extraction: Filters items to only those with a
noticeblock - Notice molecule: Delegates to
Noticefor rendering - CSLP support: Passes
item.$?.noticeto Notice for visual editing - Key handling: Uses
item.uidor fallback index for React keys
Notes
- Returns
nullif no items have notices - Excludes FAQ and Related Items (handled by
AdditionalItemsSection) - Renders before main content on content pages