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

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

) : (

0 {text}

)}
{listUsers?.map(({ _id, login, avatar }) => ( ))}
) } export default ListOfUsers