| Server IP : 13.235.167.51 / Your IP : 216.73.217.116 Web Server : Apache System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/control.machinox.in/node_modules/react-bootstrap/esm/ |
Upload File : |
"use client";
import classNames from 'classnames';
import * as React from 'react';
import { useBootstrapPrefix } from './ThemeProvider';
import Dropdown from './Dropdown';
import NavLink from './NavLink';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
const NavDropdown = /*#__PURE__*/React.forwardRef(({
id,
title,
children,
bsPrefix,
className,
rootCloseEvent,
menuRole,
disabled,
active,
renderMenuOnMount,
menuVariant,
...props
}, ref) => {
/* NavItem has no additional logic, it's purely presentational. Can set nav item class here to support "as" */
const navItemPrefix = useBootstrapPrefix(undefined, 'nav-item');
return /*#__PURE__*/_jsxs(Dropdown, {
ref: ref,
...props,
className: classNames(className, navItemPrefix),
children: [/*#__PURE__*/_jsx(Dropdown.Toggle, {
id: id,
eventKey: null,
active: active,
disabled: disabled,
childBsPrefix: bsPrefix,
as: NavLink,
children: title
}), /*#__PURE__*/_jsx(Dropdown.Menu, {
role: menuRole,
renderOnMount: renderMenuOnMount,
rootCloseEvent: rootCloseEvent,
variant: menuVariant,
children: children
})]
});
});
NavDropdown.displayName = 'NavDropdown';
export default Object.assign(NavDropdown, {
Item: Dropdown.Item,
ItemText: Dropdown.ItemText,
Divider: Dropdown.Divider,
Header: Dropdown.Header
});