import { jsx } from 'react/jsx-runtime';
import React__default from 'react';
import { cn } from '../../../utils/cn.js';
import { AccordionNavProvider } from './SidebarContext.js';

const SidebarNav = React__default.forwardRef(({ accordion = false, children, className, ...props }, ref) => {
    return (jsx("nav", { ref: ref, className: cn('flex-1 space-y-1 p-4', className), role: "navigation", ...props, children: jsx(AccordionNavProvider, { accordion: accordion, children: children }) }));
});
SidebarNav.displayName = 'SidebarNav';

export { SidebarNav };
