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
394 B
21 lines
394 B
3 years ago
|
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;
|