mirror of https://github.com/Sonarr/Sonarr
21 lines
405 B
JavaScript
21 lines
405 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import Link from 'Components/Link/Link';
|
|
|
|
function SeriesTitleLink({ titleSlug, title }) {
|
|
const link = `/series/${titleSlug}`;
|
|
|
|
return (
|
|
<Link to={link}>
|
|
{title}
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
SeriesTitleLink.propTypes = {
|
|
titleSlug: PropTypes.string.isRequired,
|
|
title: PropTypes.string.isRequired
|
|
};
|
|
|
|
export default SeriesTitleLink;
|