teqo-backup/src/components/campaign/LeadershipFormLazy.tsx
Francisco Ignácio Fontoura Solla bcac665cb5 Ship /campanha nuclei MVP with RBAC, invites, and vote estimates.
Adds electoral nuclei, leaderships, updates, and WhatsApp invite flows behind campaign auth, plus the consolidated schema migration that Vercel applies on deploy.
2026-07-18 15:01:56 -03:00

24 lines
717 B
TypeScript

'use client'
import { lazy, Suspense } from 'react'
import type { LeadershipFormProps } from '@/components/campaign/LeadershipForm'
import { Skeleton } from '@/components/ui/skeleton'
const LazyLeadershipForm = lazy(() =>
import('./LeadershipForm').then((module) => ({ default: module.LeadershipForm })),
)
export const LeadershipFormLazy = (props: LeadershipFormProps) => (
<Suspense
fallback={
<div className="flex flex-1 flex-col gap-4 px-4 pb-4" aria-label="Carregando formulário">
<Skeleton className="h-11 w-full" />
<Skeleton className="h-11 w-full" />
<Skeleton className="h-32 w-full" />
</div>
}
>
<LazyLeadershipForm {...props} />
</Suspense>
)