import { jsx as _jsx } from "react/jsx-runtime";
import { useArgs } from "@storybook/preview-api";
import { useCallback } from "react";
import { DefaultEditor } from "./default-editor.js";
import { mockDocumentModelEditorOptions } from "./mocks.js";
const meta = {
    title: "Connect/Components/Default Editor",
    component: DefaultEditor,
};
export default meta;
export const Default = {
    args: {
        documentModelEditor: mockDocumentModelEditorOptions[0].value,
        documentModelEditorOptions: mockDocumentModelEditorOptions,
        setDocumentModelEditor: () => { },
    },
    render: function Wrapper(args) {
        const [, setArgs] = useArgs();
        const setDocumentModelEditor = useCallback((value) => {
            setArgs({ ...args, documentModelEditor: value });
        }, [args, setArgs]);
        return (_jsx(DefaultEditor, { ...args, setDocumentModelEditor: setDocumentModelEditor }));
    },
};
//# sourceMappingURL=default-editor.stories.js.map