import React from 'react' import { ListGroup } from 'react-bootstrap'; function OpenList(props) { function enterChatRoomCH(e) { if (props.roomCode){ props.closeChatRoom(props.roomCode) } const roomCode = e.target.name props.openListroom(roomCode) props.setRoomCode(roomCode) } return (
{props.openlist.map((item, index) => {item.roomName} )}
) } export default OpenList