Files
Airframe-React/app/components/Nav/nav.js
2019-08-15 00:54:44 +02:00

26 lines
521 B
JavaScript
Executable File

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Nav as BsNav } from 'reactstrap';
const Nav = ({ accent, className, ...otherProps }) => {
return (
<BsNav
className={
classNames(className, 'nav', { 'nav-accent': accent })
}
{ ...otherProps }
/>
);
};
Nav.propTypes = {
...BsNav.propTypes,
accent: PropTypes.bool,
};
Nav.defaultProps = {
accent: false
};
export { Nav };