import React, { useState } from 'react'; import { ListGroup, Col, Row, Modal, Button, Form, Alert } from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import randCode from '../randCode' // import randomN from './RandomN'; function Home() { const [list, setList] = useState([ { room: '테스트 방1', memnum: 5, admin: '가영' }, { room: '테스트 방2', memnum: 4, admin: '수현' }] ); const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true); const [show2, setShow2] = useState(false); const handleClose2 = () => setShow2(false); const handleShow2 = () => setShow2(true); const [checkedI, setCheckedI] = useState(false); const codeClose = () => setCheckedI(false); const codeShow = () => setCheckedI(true); const [showCode, setCode] = useState(false); const handleCloseCode = () => setCode(false); const handleShowCode = () => setCode(true); return (
{list.map(list =>

{list.room}

)}
방 생성
방 이름 관심 분야 공개방 setCheckedI(!checkedI)} /> { (checkedI) ? (

공개방으로 개설되어 공개방 목록에 공개되며, 코드를 공유하여 참가할 수도 있습니다.

) : (

비밀방으로 개설되며, 참여자들에게 코드를 공유해야합니다.

) }
setCode(false)} dismissible> 생성 완료

참여코드는 oooo입니다.

참여 코드로 채팅 참가
{ console.log('제출') }}> 참여 코드
); } export default Home;