'use client' import { Info } from 'lucide-react' import { useState } from 'react' import { CampaignWizardNavLink } from '@/components/campaign/shared/CampaignWizardNavLink' import { CampaignWizardShell } from '@/components/campaign/shared/CampaignWizardShell' import { Button } from '@/components/ui/button' import { Drawer, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, } from '@/components/ui/Drawer' import { wizardPreviousHref, wizardReturnHref, wizardTrendHref } from '@/lib/campaignActionRoutes' import { wizardFlowTitleForSlug } from '@/lib/campaignWizardCopy' import { politicalTrendWizardMetaByStatus, type PoliticalTrendWizardMetaEntry, } from '@/lib/politicalTrendWizardMeta' import { selectablePoliticalTrendStatuses, wizardTrendChoiceStepTitle, } from '@/lib/politicalTrendWizardUi' import type { PoliticalTrendStatusValue } from '@/lib/schemas/municipality' import { cn } from '@/lib/utils' type WizardTrendChoiceStepProps = { actionSlug: string municipalityName: string municipalitySlug: string currentStatus: PoliticalTrendStatusValue | null returnPath?: string } export const WizardTrendChoiceStep = ({ actionSlug, municipalityName, municipalitySlug, currentStatus, returnPath, }: WizardTrendChoiceStepProps) => { const [infoEntry, setInfoEntry] = useState(null) const options = selectablePoliticalTrendStatuses(currentStatus) return ( <> !open && setInfoEntry(null)}> {infoEntry ? ( <> {infoEntry.label} {infoEntry.changeDescription}

{infoEntry.infoContent}

Fechar ) : null}
) }