import { InputText } from 'primereact/inputtext' import React, { useEffect, useState } from 'react' const Inquilinos = () => { function registrarInquilino() { let data = { email: document.getElementById('correo_electronico').value, community_id: document.getElementById('numero_vivienda').value, user_type: '3', status: '1', } fetch('http://localhost:3000/api/createUser', { method: 'POST', cache: 'no-cache', body: JSON.stringify(data), headers: { 'Content-Type': 'application/json', }, }).then((response) => { if (response.ok) { alert('Inquilino registrado correctamente') } else { alert('Error al registrar inquilino') } }) } return (