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.
39 lines
624 B
39 lines
624 B
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import Link from 'Components/Link/Link';
|
|
import styles from './MenuItem.css';
|
|
|
|
class MenuItem extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
const {
|
|
className,
|
|
children,
|
|
...otherProps
|
|
} = this.props;
|
|
|
|
return (
|
|
<Link
|
|
className={className}
|
|
{...otherProps}
|
|
>
|
|
{children}
|
|
</Link>
|
|
);
|
|
}
|
|
}
|
|
|
|
MenuItem.propTypes = {
|
|
className: PropTypes.string,
|
|
children: PropTypes.node.isRequired
|
|
};
|
|
|
|
MenuItem.defaultProps = {
|
|
className: styles.menuItem
|
|
};
|
|
|
|
export default MenuItem;
|