ContentRailCell
import ContentRailCell from "@dertour/ui/components/common/ContentRail/ContentRailCell"
ONE CELL OF THE GENERIC CONTENT RAIL → the card component its own CMS identity names. THE RAIL SUPPLIES GEOMETRY; THE CARD DECIDES ITS COMPONENT. Which arm a linked entry becomes was already decided upstream, once, by `cms/mappers/railCards.ts`' `RAIL_CARD_CELLS` / `railCellKind` — the SAME table the homepage's three bespoke rails use. This component holds no content-type ids, no `kind` strings and no second lookup: it switches on the tagged union that table produced, so a card can never render as one component here and another one there. The switch is exhaustive over `RailCell`. Add an arm to the union without a branch here and the `never` assignment stops compiling, so a new card type cannot ship as a silently blank cell.
Loading demo…