mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-30 18:24:45 -04:00
21 lines
394 B
JavaScript
21 lines
394 B
JavaScript
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;
|