import PropTypes from 'prop-types'; import React from 'react'; import { kinds } from 'Helpers/Props'; import Label from 'Components/Label'; import SeriesPoster from 'Series/SeriesPoster'; import styles from './SeriesSearchResult.css'; function SeriesSearchResult(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 (