You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readarr/frontend/src/Album/AlbumTitleLink.js

22 lines
498 B

import PropTypes from 'prop-types';
import React from 'react';
import Link from 'Components/Link/Link';
function AlbumTitleLink({ titleSlug, title, disambiguation }) {
const link = `/book/${titleSlug}`;
return (
<Link to={link}>
{title}{disambiguation ? ` (${disambiguation})` : ''}
</Link>
);
}
AlbumTitleLink.propTypes = {
titleSlug: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
disambiguation: PropTypes.string
};
export default AlbumTitleLink;