'use client';
'use strict';

var _tslib = require('../_virtual/_tslib.js');
var index_module = require('../external/@radix-ui/react-dialog/dist/index.module.js');
var index = require('../external/classnames/index.js');
var React = require('react');
var drawer_module = require('./drawer.module.css.js');

var Root = React.forwardRef(function Drawer(_a, ref) {
    var className = _a.className, defaultOpen = _a.defaultOpen, open = _a.open, onOpenChange = _a.onOpenChange, modal = _a.modal, otherProps = _tslib.__rest(_a, ["className", "defaultOpen", "open", "onOpenChange", "modal"]);
    return (React.createElement(index_module.Root, { defaultOpen: defaultOpen, open: open, onOpenChange: onOpenChange, modal: modal },
        React.createElement(index_module.Portal, null,
            React.createElement(index_module.Overlay, _tslib.__assign({ ref: ref, asChild: true, className: index(className, drawer_module.root) }, otherProps)))));
});
var Content = React.forwardRef(function Content(_a, ref) {
    var otherProps = _tslib.__rest(_a, []);
    return React.createElement(index_module.Content, _tslib.__assign({ ref: ref, asChild: true }, otherProps));
});
var Drawer = { Root: Root, Content: Content };

exports.Content = Content;
exports.Drawer = Drawer;
exports.Root = Root;
//# sourceMappingURL=drawer.js.map
