"use client";
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var accordion_module = require('./accordion.module.css.cjs');
var index = require('../../node_modules/.pnpm/@radix-ui_react-accordion@1.2.11_@types_react-dom@19.1.7_@types_react@19.1.9__@types_react@19_zftgnylfdh3y5366zdfqxxpsrq/node_modules/@radix-ui/react-accordion/dist/index.cjs');

const AccordionRoot = React.forwardRef(({ className, type = 'single', ...rest }, ref) => {
    // this is a workaround to properly typecast the union type
    const singleProps = {
        type: 'single',
        collapsible: true,
        ...rest
    };
    const multipleProps = {
        type: 'multiple',
        ...rest
    };
    return (jsxRuntime.jsx(index.Root, { ref: ref, className: index$1.cx(accordion_module.default.accordion, className), ...(type === 'multiple' ? multipleProps : singleProps) }));
});
AccordionRoot.displayName = index.Root.displayName;

exports.AccordionRoot = AccordionRoot;
//# sourceMappingURL=accordion-root.cjs.map
