- {/* print: the dossier tab carries its own capa; page chrome stays out. */}
-
-
-
{view.name}
- {municipalityKindLabels[view.kind]}
-
- {formatMunicipalityGeographyLabel(view)}
-
- {advisorSummaries.length
- ? `Assessoria: ${advisorSummaries.map((advisor) => advisor.name).join(', ')}`
- : 'Sem assessor designado.'}
- {view.lastUpdateAt
- ? ` · Última atualização em ${dateFormatter.format(new Date(view.lastUpdateAt))}`
- : ''}
-
-
+ }>
+ {/* print: the dossier tab carries its own capa; page chrome stays out. */}
+
-
+
- {activeTab === 'overview' ? (
-
- ) : null}
+ {activeTab === 'overview' ? (
+
+ ) : null}
- {activeTab === 'dossie' ? (
- // Composes every vertical of the município in one read — streams like
- // the elections tab since it includes the same TSE baseline read.
- }>
-
-
- ) : null}
+ {activeTab === 'dossie' ? (
+ // Composes every vertical of the município in one read — streams like
+ // the elections tab since it includes the same TSE baseline read.
+ }>
+
+
+ ) : null}
- {activeTab === 'elections' ? (
- // Streams below the header/tab chrome — the TSE baselines and the
- // comparison table are the slowest reads on this page.
- }>
-
-
- ) : null}
+ {activeTab === 'elections' ? (
+ // Streams below the header/tab chrome — the TSE baselines and the
+ // comparison table are the slowest reads on this page.
+ }>
+
+
+ ) : null}
- {activeTab === 'leaderships' ? (
- }>
-
-
- ) : null}
+ {activeTab === 'leaderships' ? (
+ }>
+
+
+ ) : null}
- {activeTab === 'updates' ? (
- }>
-
-
- ) : null}
+ {activeTab === 'updates' ? (
+ }>
+
+
+ ) : null}
- {activeTab === 'demands' ? (
-
-
- As demandas deste município aparecem em{' '}
-
- Demandas
-
- .
-
-
- ) : null}
+ {activeTab === 'demands' ? (
+
+
+ As demandas deste município aparecem em{' '}
+
+ Demandas
+
+ .
+
+
+ ) : null}
-
+
+
)
}
diff --git a/src/components/campaign/municipality/MunicipalityDetailHeaderView.tsx b/src/components/campaign/municipality/MunicipalityDetailHeaderView.tsx
new file mode 100644
index 00000000..ff100ced
--- /dev/null
+++ b/src/components/campaign/municipality/MunicipalityDetailHeaderView.tsx
@@ -0,0 +1,50 @@
+import { Badge } from '@/components/ui/Badge'
+import type { MunicipalityDetailHeaderViewModel } from '@/lib/campaignOps/municipalityDetailHeaderView'
+import {
+ formatMunicipalityGeographyLabel,
+ municipalityKindLabels,
+} from '@/utilities/municipality/municipalityLabels'
+
+const dateFormatter = new Intl.DateTimeFormat('pt-BR')
+
+export type MunicipalityDetailHeaderAdvisorSummary = {
+ name: string
+}
+
+type MunicipalityDetailHeaderViewProps = {
+ view: MunicipalityDetailHeaderViewModel
+ advisorSummaries: ReadonlyArray