import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Sheet, SheetContent, SheetHeader, SheetTitle } from "../../sheet";
import { modalActions } from "../modalContext";
import { create } from "../modalHelper";
import { useModal } from "../useModal";
import React from "react";
const SimpleSheet = create((props)=>{
    const { visible, hide, resolve, onOpenChange } = useModal();
    return /*#__PURE__*/ _jsx(Sheet, {
        open: visible,
        onOpenChange: onOpenChange,
        children: /*#__PURE__*/ _jsxs(SheetContent, {
            className: props.contentClassName,
            onOpenAutoFocus: (event)=>{
                event.preventDefault();
            },
            children: [
                /*#__PURE__*/ _jsx(SheetHeader, {
                    children: /*#__PURE__*/ _jsx(SheetTitle, {
                        children: props.title
                    })
                }),
                props.content
            ]
        })
    });
});
export const sheet = (props)=>{
    return modalActions.show(SimpleSheet, props);
};

//# sourceMappingURL=sheet.js.map