Components / Content Renderer

Content Renderer

A near duplicate of ContentCard whose post fields accept null (media_urls, media_type, hook). Reach for it only when your data really is nullable; otherwise use ContentCard.

import { ContentRenderer } from '@layers/ui/content-renderer'
import '@layers/ui/css/content-card.css'

Rendered stock

House rules

  • Prefer ContentCard: the two components render identically, and this one exists only for nullable post fields.
  • It does not load its own stylesheet. The consuming surface must import @layers/ui/css/content-card.css or the card renders unstyled (ContentCard imports it itself).
  • Same footer contract as ContentCard: accounts, isScheduled, scheduledPosts, onFooterClick, hideFooter.

See also