import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Icon, Modal } from "@powerhousedao/design-system";
import { twMerge } from "tailwind-merge";
import { Divider } from "../divider/divider.js";
import { AddLocalDriveForm, } from "../form/add-local-drive-form.js";
export function AddLocalDriveModal(props) {
    const { open, onOpenChange, onSubmit, modalProps, containerProps, appOptions, } = props;
    function handleCancel() {
        onOpenChange(false);
    }
    return (_jsx(Modal, { ...modalProps, contentProps: {
            className: "rounded-2xl",
        }, onOpenChange: onOpenChange, open: open, children: _jsxs("div", { ...containerProps, className: twMerge("max-w-[408px] rounded-2xl p-6", containerProps?.className), children: [_jsxs("div", { className: "flex justify-between", children: [_jsx("h1", { className: "text-xl font-bold", children: "Create new drive " }), _jsx("button", { className: "flex size-8 items-center justify-center rounded-md bg-gray-100 text-gray-500 outline-none hover:text-gray-900", onClick: handleCancel, tabIndex: -1, children: _jsx(Icon, { name: "XmarkLight", size: 24 }) })] }), _jsx(Divider, { className: "my-4" }), _jsx(AddLocalDriveForm, { onCancel: handleCancel, onSubmit: onSubmit, appOptions: appOptions })] }) }));
}
//# sourceMappingURL=add-local-drive-modal.js.map