"use client";
import { jsx } from 'react/jsx-runtime';
import { MenuGroupLabel } from '../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/@ariakit/react-core/esm/menu/menu-group-label.js';
import { MenuGroup } from '../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/@ariakit/react-core/esm/menu/menu-group.js';
import { MenuSeparator } from '../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/@ariakit/react-core/esm/menu/menu-separator.js';
import { cx } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { forwardRef, Fragment } from 'react';
import { useDropdownContext } from './dropdown-menu-root.js';
import styles from './dropdown-menu.module.css.js';
import { Root as Slot } from '../../node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.9_react@19.2.1/node_modules/@radix-ui/react-slot/dist/index.js';

const DropdownMenuGroup = forwardRef(({ className, asChild, ...props }, ref) => {
    const { shouldFilter } = useDropdownContext();
    return (jsx(MenuGroup, { ref: ref, className: cx(styles.menugroup, className), render: shouldFilter ? jsx(Fragment, {}) : asChild ? jsx(Slot, {}) : undefined, ...props }));
});
const DropdownMenuLabel = forwardRef(({ className, asChild, ...props }, ref) => {
    const { shouldFilter } = useDropdownContext();
    if (shouldFilter) {
        return null;
    }
    return (jsx(MenuGroupLabel, { ref: ref, className: cx(styles.label, className), render: asChild ? jsx(Slot, {}) : undefined, ...props }));
});
const DropdownMenuSeparator = forwardRef(({ className, asChild, ...props }, ref) => {
    const { shouldFilter } = useDropdownContext();
    if (shouldFilter) {
        return null;
    }
    return (jsx(MenuSeparator, { ref: ref, className: cx(styles.separator, className), render: asChild ? jsx(Slot, {}) : jsx("div", {}), ...props }));
});
const DropdownMenuEmptyState = forwardRef(({ className, children, ...props }, ref) => (jsx("div", { ref: ref, className: cx(styles.empty, className), ...props, children: children })));

export { DropdownMenuEmptyState, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator };
//# sourceMappingURL=dropdown-menu-misc.js.map
