import { useState, useEffect } from 'react' import movieApi from '../../apis/movie.api.js' import { Link } from 'react-router-dom'; import styles from "./movieChart.module.scss" const MovieChart = () => { const [TMDB_TopRated_Data, setTMDB_TopRated_Data] = useState([]) const category="popular" useEffect(() => { getTMDB_TopRated() }, []) async function getTMDB_TopRated() { try { const data = await movieApi.getMoviesfromTM(category) console.log(data) setTMDB_TopRated_Data([...data]) } catch (error) { } } return (
예매율: {movie.ticket_sales}0% | {movie.runtime}분
{movie.release_date} 개봉