import PropTypes from 'prop-types'; import React from 'react'; import { kinds } from 'Helpers/Props'; import Label from 'Components/Label'; import MoviePoster from 'Movie/MoviePoster'; import styles from './MovieSearchResult.css'; function MovieSearchResult(props) { const { match, title, images, alternateTitles, tags } = props; let alternateTitle = null; let tag = null; if (match.key === 'alternateTitles.cleanTitle') { alternateTitle = alternateTitles[match.arrayIndex]; } else if (match.key === 'tags.label') { tag = tags[match.arrayIndex]; } return (