import { jsx as _jsx } from "react/jsx-runtime";
import { ApplicationRowActions } from './application-row-actions.js';
import { DeploymentStatusProvider } from '../../../hooks/deployment-status-provider.js';
const meta = {
    title: 'Features/ApplicationRowActions',
    component: ApplicationRowActions,
    tags: ['autodocs'],
    parameters: {
        layout: 'centered',
    },
    decorators: [
        (Story) => (_jsx(DeploymentStatusProvider, { initialDeployments: [], children: _jsx(Story, {}) })),
    ],
    args: {
        applicationId: 'app-abc-123',
        applicationName: 'Marketing Site',
        repositoryPath: '/home/user/repos/marketing-site',
    },
};
export default meta;
/** Default — no cloud deployment, no local server. Shows Open / Start / Delete. */
export const Default = {};
/** With a cloud preview URL — adds the "Open live preview" entry. */
export const WithCloudPreview = {
    args: {
        cloudUrl: 'https://abc123.example.pages.dev',
    },
};
/** Loading state — shown when a deploy or stop call is in flight. */
export const Loading = {
    args: {
        applicationId: 'app-loading-1',
    },
};
/** Error state — surface area is unchanged; errors are reported via toast. */
export const Error = {
    args: {
        applicationId: 'app-error-1',
    },
};
