Skip to main content

MySanctionsList

packages/mobility/components/organisms/MySanctionsList.js · Tier: organism · Module: mobility · Rendering: Client Component ('use client')

Purpose​

The citizen-facing list of received sanctions. Tapping a row opens a modal that lazily fetches the base64 evidence image through a server action.

Props​

PropTypeRequiredDefaultDescription
sanctionsArray<{ id, licensePlate, latitude, longitude, agentSub?, createdAt }>yes—The user's sanctions.
labelsobjectyes—List copy.
detailLabelsobjectyes—Detail-modal copy.
langstringyes—Locale.

Composition​

  • Uses: molecules/mobility/SanctionDetailModal, atoms/core/Icon, useState.
  • Used by: the /mobility/my-sanctions page.

Internationalisation​

Copy via labels / detailLabels.

Accessibility​

Rows are labelled buttons opening the accessible detail modal.

molecules/mobility/SanctionDetailModal, organisms/mobility/SanctionsManageList.