import { jsx as _jsx } from "react/jsx-runtime";
import { DeploymentState } from '../../../../../../packages/core/src/domain/generated/output.js';
import { ViewBody } from './view-body.js';
const idleDeploy = {
    status: null,
    url: null,
    deployLoading: false,
    stopLoading: false,
    deployError: null,
    deploy: async () => undefined,
    stop: async () => undefined,
};
const readyDeploy = {
    ...idleDeploy,
    status: DeploymentState.Ready,
    url: 'http://localhost:4321',
};
const meta = {
    title: 'ApplicationPage/ViewBody',
    component: ViewBody,
    parameters: { layout: 'fullscreen' },
    decorators: [
        (Story) => (_jsx("div", { className: "h-dvh w-full", children: _jsx(Story, {}) })),
    ],
};
export default meta;
export const IdeView = {
    args: {
        activeView: 'ide',
        applicationId: 'app-001',
        terminalCwd: '/home/user/example-app',
        deploy: idleDeploy,
    },
};
export const WebReady = {
    args: {
        activeView: 'web',
        applicationId: 'app-001',
        terminalCwd: '/home/user/example-app',
        deploy: readyDeploy,
    },
};
