This commit is contained in:
2026-08-08 18:53:36 +03:30
commit 92f21ca1cf
134 changed files with 22909 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import PropTypes from 'prop-types';
import { LinkContainer } from 'react-router-bootstrap';
import Nav from 'react-bootstrap/Nav';
function NavLink(props) {
const { to, content, ...otherProps } = props;
return (
<LinkContainer to={to}>
<Nav.Link {...otherProps}>{content}</Nav.Link>
</LinkContainer>
);
}
NavLink.propTypes = {
to: PropTypes.string.isRequired,
content: PropTypes.string
};
export default NavLink;