teqo/src/components/campaign/shared/CampaignInfoHint.tsx
Francisco Ignácio Fontoura Solla c706c62098 Pass 2 W2: components/campaign em subpastas por dominio
106 arquivos flat -> 15 dominios (actionPlan, advisor, auth, dashboard, demand, invite, leadership, map, municipality, organization, stateDeputy, supporter, votePledge, shared, shell) via git mv; imports absolutos reescritos em 98 arquivos; excecao de lint do campaign-logo e paths dos specs de contrato (campaignInviteUi, campaignComponents) atualizados. Sem mudanca de conteudo nos componentes.
2026-07-25 14:52:17 -03:00

27 lines
888 B
TypeScript

'use client'
import { CircleHelpIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { Button } from '@/components/ui/button'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/Popover'
/** Touch-friendly “?” info (Popover, not hover-only Tooltip). */
export const CampaignInfoHint = ({ label, children }: { label: string; children: ReactNode }) => (
<Popover>
<PopoverTrigger asChild>
<Button
type="button"
variant="ghost"
size="icon"
className="size-8 min-h-11 min-w-11 shrink-0 text-muted-foreground hover:text-foreground"
aria-label={label}
>
<CircleHelpIcon className="size-4" aria-hidden="true" />
</Button>
</PopoverTrigger>
<PopoverContent align="start" className="w-64 p-3 text-sm leading-snug">
{children}
</PopoverContent>
</Popover>
)