import React from 'react'; import Link from 'Components/Link/Link'; import styles from './HistoryRowParameter.css'; interface HistoryRowParameterProps { title: string; value: string; } function HistoryRowParameter(props: HistoryRowParameterProps) { const { title, value } = props; const type = title.toLowerCase(); let link = null; if (type === 'imdb') { link = {value}; } else if (type === 'tmdb') { link = ( {value} ); } else if (type === 'tvdb') { link = ( {value} ); } else if (type === 'tvmaze') { link = {value}; } return (
{title}
{link ? link : value}
); } export default HistoryRowParameter;