import { Link } from 'react-router-dom' import { useState } from 'react' import CountButton from '../components/CountButton' import SeatTable from '../components/SeatTable/SeatTable' const TicketingSeatPage = ({ location }) => { const [ticketInfo, setTicketInfo] = useState({ ...location.state }) const [selectedSeats, setSelectedSeats] = useState([]) const [count, setCount] = useState({ adult: 0, teenager: 0, elderly: 0 }) const allSeat = { row: 6, col: 10 } return (
{console.log(ticketInfo)}

좌석선택

  • 일반
  • 청소년
  • 경로우대
{ticketInfo.theater} | 3관
{ticketInfo.title}
2021/07/21 10:00 ~ 11:30

선택됨

선택불가

{ticketInfo ? 영화포스터 :
영화선택
}
극장선택
{ticketInfo ?
  • 영화: {ticketInfo.title}
  • 극장: {ticketInfo.theater}
  • 일시: 2021/07/21 10:00
  • 상영관: 3관
  • 좌석: {selectedSeats}
:
}
결제하기
{ticketInfo ? 예매하기 : 예매하기 }
) } export default TicketingSeatPage