import React from 'react' import { Badge, ListGroup } from 'react-bootstrap'; function ClosedList(props) { function enterChatRoomCH(e) { if (props.roomCode) { props.closeChatRoom(props.roomCode) } const roomCode = e.target.name const roomName = e.target.value props.enterChatRoom(roomCode) props.setRoomCode(roomCode) props.setRoomName(roomName) } return (
{props.closedlist.map((item, index) => {item.roomName} {/* {[index] ? {unreadnumber[index]} : ''} */} ) }
) } export default ClosedList