teqo-backup/src/components/campaign/dashboard/CampaignHomeActions.tsx
Francisco Ignácio Fontoura Solla 274cde65a7 B58: polish Início action strip and centralize coarse press state.
Short staff labels, hidden scrollbar, circle feedback on hover/press, and long-press pressing lives in useCampaignLongPress for reuse.
2026-07-29 16:10:24 -03:00

19 lines
622 B
TypeScript

'use client'
import { CampaignHomeActionStrip } from '@/components/campaign/dashboard/CampaignHomeActionStrip'
import { homeActionsForRole, toHomeActionButtonProps } from '@/lib/campaignHomeActions'
import type { CampaignRole } from '@/lib/campaignRoles'
export const CampaignHomeActions = ({
role,
uncoveredMunicipalitiesHref,
}: {
role: CampaignRole
uncoveredMunicipalitiesHref?: string
}) => {
const actions = toHomeActionButtonProps(homeActionsForRole(role), uncoveredMunicipalitiesHref)
if (actions.length === 0) return null
return <CampaignHomeActionStrip actions={actions} className="w-full" />
}