import React from 'react'; import { useForm } from 'react-hook-form'; import { Processo } from '../../types/entities'; interface ProcessoFormProps { onSubmit: (data: Partial) => void; initialData?: Partial; } const resultadoOptions = [ { value: 'NAO_JULGADO', label: 'Não Julgado' }, { value: 'PROCEDENTE', label: 'Procedente' }, { value: 'PARCIALMENTE_PROCEDENTE', label: 'Parcialmente Procedente' }, { value: 'IMPROCEDENTE', label: 'Improcedente' }, { value: 'SEM_ANALISE_MERITO', label: 'Sem Análise de Mérito' } ]; export const ProcessoForm: React.FC = ({ onSubmit, initialData }) => { const { register, handleSubmit, reset } = useForm>({ defaultValues: initialData, }); return (
); };