Skip to main content

SpaceDetailView

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

Purpose​

Renders the body of a public (sports) space detail page: banner (or title fallback), description, photo gallery, the reservable-resources panel, the location aside, and the staff administration controls. The back button is owned by the page.

Props​

PropTypeRequiredDefaultDescription
spaceobjectyes—Public space payload.
resourcesobject[]yes—Reservable resources of the space.
tobjectyes—leisure.spaceDetail dictionary.
tAdminobjectyes—leisure.adminActions dictionary.
tResobjectyes—leisure.resources dictionary.
tResFormobjectyes—leisure.resourceForm dictionary.
tTypesobjectyes—leisure.resourceTypes dictionary.
langstringyes—Locale.
canManageSpacebooleanyes—Shows the space admin controls.
canManageResourcesbooleanyes—Enables resource management.

Composition​

  • Uses: molecules/leisure/PhotoGallery, molecules/leisure/LocationSection, organisms/leisure/SpaceResourcesPanel, molecules/core/AdminSection, molecules/leisure/DeleteEntityButton, atoms/core/Icon, next/link.
  • Used by: the sports-space detail page.

Internationalisation​

Copy from leisure.spaceDetail and related resource dictionaries.

Accessibility​

Structured sections with headings; admin/resource controls are capability-gated.

organisms/leisure/SpaceResourcesPanel, organisms/leisure/PublicSpaceForm, molecules/leisure/LocationSection.