mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-16 03:03:06 +00:00
Short staff labels, hidden scrollbar, circle feedback on hover/press, and long-press pressing lives in useCampaignLongPress for reuse.
19 lines
622 B
TypeScript
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" />
|
|
}
|