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.
22 lines
514 B
22 lines
514 B
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import Link from 'Components/Link/Link';
|
|
|
|
function AlbumTitleLink({ foreignAlbumId, title, disambiguation }) {
|
|
const link = `/album/${foreignAlbumId}`;
|
|
|
|
return (
|
|
<Link to={link}>
|
|
{title}{disambiguation ? ` (${disambiguation})` : ''}
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
AlbumTitleLink.propTypes = {
|
|
foreignAlbumId: PropTypes.string.isRequired,
|
|
title: PropTypes.string.isRequired,
|
|
disambiguation: PropTypes.string
|
|
};
|
|
|
|
export default AlbumTitleLink;
|