Grégoire Delattre b6be9488c9
Some checks failed
continuous-integration/drone/push Build is failing
Add a page to display a movie
2021-08-22 11:33:36 -10:00

23 lines
428 B
JavaScript

import React from "react";
import PropTypes from "prop-types";
export const Fanart = ({ url }) => {
if (url == "") {
return null;
}
return (
<div className="show-fanart mx-n3 mt-n1">
<img
className="img w-100 object-fit-cover object-position-top mh-40vh"
src={url}
/>
</div>
);
};
Fanart.propTypes = {
url: PropTypes.string.isRequired,
};
Fanart.defaultProps = {
url: "",
};