import { Link, useForm, usePage } from '@inertiajs/react'; import StructureGeographyPanel, { type StructureGeography, } from '@/components/structure-geography'; import { Frame, Errors, Field, control, button, labels, type Catalogues, type Interest, type Partnership, type Source, } from './shared'; type Props = Catalogues & { record: Partnership; owner: boolean; canEdit: boolean; moderator: boolean; origins: (Source & { geography: StructureGeography | null })[]; locations: { id: string; name: string; role: string; source_reference: string; path: { name: string }[]; }[]; interests: Interest[]; history: { event_type: string; actor_id: number; occurred_at: string; payload: string; }[]; }; function Publication({ p }: { p: Props }) { const form = useForm({ version: p.record.version, action: '', reason: '' }); const action = (value: string) => { form.transform((data) => ({ ...data, action: value })); form.post('/parcerias/' + p.record.id + '/estado', { preserveScroll: true, }); }; return (

Pré-visualização e publicação

Estado: {labels[p.record.status] ?? p.record.status}. Verificação da organização, setor e localização permanecem por confirmar quando não há evidência.