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/Author/AuthorNameLink.js

21 lines
448 B

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