import Form from './Form';
import { useRegisterStore } from '../stores/useRegisterStore';
import { useEffect } from 'react';
interface FormProps {
  chekValid: boolean;
  buttonSubmitClick: boolean;
}
const RegistrasiIndividu: React.FC<FormProps> = ({
  chekValid,
  buttonSubmitClick,
}) => {
  const { form, errors, updateForm, validate } = useRegisterStore();

  useEffect(() => {
    updateForm('is_pkp', 'false');
    updateForm('is_terdaftar', 'false');
    updateForm('type_acc', 'individu');
    validate();
  }, []);

  return (
    <>
      <Form
        type='individu'
        required={false}
        isBisnisRegist={false}
        chekValid={chekValid}
        buttonSubmitClick={buttonSubmitClick}
      />
    </>
  );
};

export default RegistrasiIndividu;
