"use client";
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var menuGroupLabel = require('../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@ariakit/react-core/esm/menu/menu-group-label.cjs');
var menuGroup = require('../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@ariakit/react-core/esm/menu/menu-group.cjs');
var menuSeparator = require('../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@ariakit/react-core/esm/menu/menu-separator.cjs');
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var dropdownMenuRoot = require('./dropdown-menu-root.cjs');
var dropdownMenu_module = require('./dropdown-menu.module.css.cjs');
var index$1 = require('../../node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.9_react@19.1.1/node_modules/@radix-ui/react-slot/dist/index.cjs');

const DropdownMenuGroup = React.forwardRef(({ className, asChild, ...props }, ref) => {
    const { shouldFilter } = dropdownMenuRoot.useDropdownContext();
    return (jsxRuntime.jsx(menuGroup.MenuGroup, { ref: ref, className: index.cx(dropdownMenu_module.default.menugroup, className), render: shouldFilter ? jsxRuntime.jsx(React.Fragment, {}) : asChild ? jsxRuntime.jsx(index$1.Root, {}) : undefined, ...props }));
});
const DropdownMenuLabel = React.forwardRef(({ className, asChild, ...props }, ref) => {
    const { shouldFilter } = dropdownMenuRoot.useDropdownContext();
    if (shouldFilter) {
        return null;
    }
    return (jsxRuntime.jsx(menuGroupLabel.MenuGroupLabel, { ref: ref, className: index.cx(dropdownMenu_module.default.label, className), render: asChild ? jsxRuntime.jsx(index$1.Root, {}) : undefined, ...props }));
});
const DropdownMenuSeparator = React.forwardRef(({ className, asChild, ...props }, ref) => {
    const { shouldFilter } = dropdownMenuRoot.useDropdownContext();
    if (shouldFilter) {
        return null;
    }
    return (jsxRuntime.jsx(menuSeparator.MenuSeparator, { ref: ref, className: index.cx(dropdownMenu_module.default.separator, className), render: asChild ? jsxRuntime.jsx(index$1.Root, {}) : jsxRuntime.jsx("div", {}), ...props }));
});
const DropdownMenuEmptyState = React.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsx("div", { ref: ref, className: index.cx(dropdownMenu_module.default.empty, className), ...props, children: children })));

exports.DropdownMenuEmptyState = DropdownMenuEmptyState;
exports.DropdownMenuGroup = DropdownMenuGroup;
exports.DropdownMenuLabel = DropdownMenuLabel;
exports.DropdownMenuSeparator = DropdownMenuSeparator;
//# sourceMappingURL=dropdown-menu-misc.cjs.map
