teqo-backup/src/lib/wizardLeadershipContract.ts
Francisco Ignácio Fontoura Solla 29f6b32e91 refactor(campanha): simplify B70 wizard loader and tile a11y.
Lean tile loader avoids org/deputy fetches; server sorts names; info button is no longer nested inside the tile button.
2026-07-30 03:51:25 -03:00

18 lines
612 B
TypeScript

import type { CampaignWizardActionId } from '@/lib/campaignActionRoutes'
import type { SupportStatus } from '@/lib/schemas/leadership'
/** Client-safe tile payload for the B70 leadership wizard grid. */
export type WizardLeadershipTileViewModel = {
id: number
name: string
phone: string | null
email: string | null
supportStatus: SupportStatus | null
exclusive: boolean
notes: string | null
}
export const showLeadershipWizardSkip = (entryAction?: CampaignWizardActionId): boolean => {
const effectiveEntry = entryAction ?? 'update-leadership'
return effectiveEntry !== 'update-leadership'
}