mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
Rede de segurança para E15, copy honesta no Quadro para assessores, uma varredura federal por ano no artefato e tupla de rank no bundle RSC.
39 lines
965 B
TypeScript
39 lines
965 B
TypeScript
'use client'
|
|
|
|
import dynamic from 'next/dynamic'
|
|
|
|
import type { CampaignRole } from '@/lib/campaignRoles'
|
|
import type { FederalCandidateOption } from '@/utilities/electionCandidateOptions'
|
|
import type { MunicipalityMapBundle } from '@/utilities/municipality/municipalityMapContract'
|
|
|
|
const MunicipalityMapPanelLazy = dynamic(
|
|
() =>
|
|
import('@/components/campaign/map/MunicipalityMapPanel').then(
|
|
(module) => module.MunicipalityMapPanel,
|
|
),
|
|
{
|
|
ssr: false,
|
|
loading: () => (
|
|
<div
|
|
aria-hidden="true"
|
|
className="h-[420px] w-full animate-pulse rounded-xl border bg-muted/40"
|
|
/>
|
|
),
|
|
},
|
|
)
|
|
|
|
export const MunicipalityMapPanelDynamic = ({
|
|
bundle,
|
|
candidateOptions,
|
|
actorRole,
|
|
}: {
|
|
bundle: MunicipalityMapBundle
|
|
candidateOptions: FederalCandidateOption[]
|
|
actorRole: CampaignRole
|
|
}) => (
|
|
<MunicipalityMapPanelLazy
|
|
bundle={bundle}
|
|
candidateOptions={candidateOptions}
|
|
actorRole={actorRole}
|
|
/>
|
|
)
|