import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useArgs } from "@storybook/preview-api";
import { AddLocalDriveModal } from "./add-local-drive-modal.js";
const meta = {
    title: "Connect/Components/Create Drive Modal",
    component: AddLocalDriveModal,
};
export default meta;
export const Default = {
    args: {
        open: true,
        onSubmit() { },
        onOpenChange() { },
        appOptions: [
            {
                id: "powerhouse/common",
                name: "Generic Drive Explorer",
                driveEditor: "GenericDriveExplorer",
            },
            {
                id: "powerhouse/invoice/contributor",
                name: "Contributor App",
                driveEditor: "ContributorDrive",
            },
            {
                id: "powerhouse/invoice/administrator",
                name: "OH Administrator App",
                driveEditor: "AdministratorDrive",
            },
        ],
    },
    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,
                            open: true,
                        });
                    }, children: "Open Modal" }), _jsx(AddLocalDriveModal, { ...args, modalProps: {
                        ...args.modalProps,
                        onOpenChange: (open) => {
                            setArgs({
                                ...args,
                                open,
                            });
                        },
                    } })] }));
    },
};
//# sourceMappingURL=add-local-drive-modal.stories.js.map