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