import React, { useState } from 'react'; import { Link } from 'react-router-dom'; const MoviePage = ({ location }) => { const [movieInfo, setMovieInfo] = useState({ ...location.state, stillCuts: ["/images/movie_image_black_stillcut1.jpg", "/images/movie_image_black_stillcut2.jpg", "/images/movie_image_black_stillcut3.jpg"], production: "케이트 쇼트랜드", casts: ["Scarlett Johansson", "Florence Pugh", "David Harbour", "Rachel Weisz"], genres: ["액션", "모험", "스릴러"], attendance: 585954 }) const [state, setState] = useState(0) return (
{console.log(movieInfo)}
{movieInfo.stillCuts.length > 0 ? movieInfo.stillCuts.map((image, index) => (
스틸컷
)) :
등록된 스틸컷이 없습니다.
}
영화포스터

{movieInfo.title}

예매율: {movieInfo.popularity}% 누적관객수: {movieInfo.attendance}명

감독: {movieInfo.production}

출연: {movieInfo.casts.map(e => e)}

장르: {movieInfo.genres.map(e => e)}

개봉일:{movieInfo.release_date}

{movieInfo.overview}
예고편/스틸컷
관람평
) } export default MoviePage