import { CloudDeploymentProvider } from '../../../../../../packages/core/src/domain/generated/output.js';
import { ConnectProviderModal } from './connect-provider-modal.js';
const meta = {
    title: 'ApplicationPage/ConnectProviderModal',
    component: ConnectProviderModal,
    parameters: { layout: 'centered' },
};
export default meta;
const noopClose = () => undefined;
const noopSubmit = async () => undefined;
export const Cloudflare = {
    args: {
        provider: CloudDeploymentProvider.CloudflarePages,
        onClose: noopClose,
        onSubmit: noopSubmit,
    },
};
export const Vercel = {
    args: {
        provider: CloudDeploymentProvider.Vercel,
        onClose: noopClose,
        onSubmit: noopSubmit,
    },
};
export const Closed = {
    args: {
        provider: null,
        onClose: noopClose,
        onSubmit: noopSubmit,
    },
};
export const SubmitError = {
    args: {
        provider: CloudDeploymentProvider.Netlify,
        onClose: noopClose,
        onSubmit: async () => {
            throw new Error('Invalid API token');
        },
    },
};
