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