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/Book/BookNameLink.js

21 lines
394 B

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