Skip to main content

EventDetailView

packages/leisure/components/organisms/EventDetailView.js · Tier: organism · Module: leisure · Rendering: Server Component

Purpose​

Renders the body of an event detail page: banner (or title fallback), description and photo gallery, the schedule/place/ticketing aside, and the staff administration controls. The back button is intentionally not rendered here so the page owns it.

Props​

PropTypeRequiredDefaultDescription
eventobjectyes—Event payload from the leisure service.
placeobject | nullyes—Bound city place (soft-failed) or null.
tobjectyes—leisure.eventDetail dictionary.
tAdminobjectyes—leisure.eventAdmin dictionary.
tBuyobjectyes—leisure.buyTicket dictionary.
typeLabelsobjectyes—leisure.eventTypes dictionary.
langstringyes—Locale.
canEdit / canDelete / canViewTickets / canBuybooleanyes—Capability flags gating the ticketing and admin controls.

Composition​

  • Uses: molecules/leisure/PhotoGallery, molecules/leisure/BuyTicketButton, molecules/leisure/DeleteEntityButton, molecules/core/AdminSection, atoms/core/Icon, next/link, format utils.
  • Used by: the event detail page.

Internationalisation​

Copy from leisure.eventDetail / eventAdmin / buyTicket and eventTypes.

Accessibility​

Structured detail sections with headings; admin controls only render when the capability flags allow.

molecules/leisure/BuyTicketButton, organisms/leisure/EventTicketsTable, organisms/leisure/EventForm.