text: (this["webpackJsonpgoit-react-hw-05-movies"]=this["webpackJsonpgoit-react-hw-05-movies"]||[]).push([[7],{45:function(t,c,e){"use strict";e.r(c),e.d(c,"default",(function(){return l}));var n=e(34),a=e(0),i=e(35),s=e(46),r=e.n(s),o=e(1);function l(t){var c=t.movieId,e=Object(a.useState)(null),s=Object(n.a)(e,2),l=s[0],m=s[1];return Object(a.useEffect)((function(){i.a(c).then((function(t){return m(t.cast)}))}),[c]),Object(o.jsxs)(o.Fragment,{children:[console.log("castArray",l),l&&Object(o.jsx)("ul",{children:l.map((function(t){return Object(o.jsxs)("li",{children:[Object(o.jsx)("h3",{children:t.name}),Object(o.jsx)("div",{className:r.a.img_block,children:Object(o.jsx)("img",{src:"".concat("https://image.tmdb.org/t/p/w300").concat(t.profile_path),alt:t.name,className:r.a.img})}),Object(o.jsxs)("p",{children:["Character: ",t.character]})]},t.id)}))})]})}},46:function(t,c,e){t.exports={img_block:"Cast_img_block__2HKIH",img:"Cast_img__FTYA-"}}}]);
  //# sourceMappingURL=7.6a72f689.chunk.js.map