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/Artist/ArtistNameLink.js

21 lines
417 B

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