import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useArgs } from "@storybook/preview-api";
import { AddRemoteDriveModal } from "./add-remote-drive-modal.js";
const meta = {
    title: "Connect/Components/Add Remote Drive Modal",
    component: AddRemoteDriveModal,
};
export default meta;
export const Default = {
    args: {
        open: true,
        onSubmit() { },
        onOpenChange() { },
        sharingType: "LOCAL",
        requestPublicDrive(url) {
            return Promise.resolve({
                id: "1",
                name: "Public Drive",
                url,
            });
        },
    },
    render: function Wrapper(args) {
        const [, setArgs] = useArgs();
        return (_jsxs("div", { className: "grid size-full place-items-center", children: [_jsx("button", { className: "rounded-lg bg-red-500 p-4 text-white", onClick: () => {
                        setArgs({
                            ...args,
                            modalProps: {
                                ...args.modalProps,
                                open: true,
                            },
                        });
                    }, children: "Open Modal" }), _jsx(AddRemoteDriveModal, { ...args })] }));
    },
};
//# sourceMappingURL=add-remote-drive-modal.stories.js.map