import { useState } from "react"; import styles from "../../styles/pdf_gen/pdfForm.module.scss"; import Input from "../Input.jsx"; export default function PdfForm({submit}) { const [param, setParam] = useState({ name: "", entete: "", police: 14, }); return (
{/*
*/}

Fiche PDF

{/*
*/} { setParam({ ...param, name: e.target.value }); }} /> { setParam({ ...param, entete: e.target.value }); }} /> {/* { if ( parseInt(e.target.value) <= 18 /* && parseInt(e.target.value) >= 10 *|| e.target.value == "" ) { setParam({ ...param, police: parseInt(e.target.value) }); } /* else if (parseInt(e.target.value) <= 10) { setParam({ ...param, police: 10 }); }* else if (isNaN(parseInt(e.target.value))) { setParam({ ...param }); } }} /> */} {/*
*/} {/*
*/}
); }