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.
16 lines
552 B
16 lines
552 B
import * as React from 'react';
|
|
import { useContext } from 'react';
|
|
import Offcanvas from './Offcanvas';
|
|
import NavbarContext from './NavbarContext';
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
const NavbarOffcanvas = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
const context = useContext(NavbarContext);
|
|
return /*#__PURE__*/_jsx(Offcanvas, {
|
|
ref: ref,
|
|
show: !!(context != null && context.expanded),
|
|
...props,
|
|
renderStaticNode: true
|
|
});
|
|
});
|
|
NavbarOffcanvas.displayName = 'NavbarOffcanvas';
|
|
export default NavbarOffcanvas; |