import { ConstructorModal } from '../helpers' import { ResultUserFind } from './Search_Users' import React, { useState } from 'react' export const ListOfUsers = ({ listResult, listUsers, onPageData, text }) => { const [isModalVisible, setIsModalVisible] = useState(false) const showModal = () => { setIsModalVisible(true) } const handleCancel = () => { setIsModalVisible(false) } return ( <> {listUsers?.length > 0 ? (

{listUsers.length} {text} {' '}

) : (

0 {text}

)} ) } export default ListOfUsers