import { PublishToGitHubButton } from './publish-to-github-button.js';
/**
 * The button drives its own state via fetch() against the API routes — the
 * stories below render it in a fixed initial state by either pre-seeding the
 * remote URL prop (has-remote case) or letting the loading spinner show
 * (the fetch will fail in storybook because there is no api server).
 */
const meta = {
    title: 'ApplicationPage/PublishToGitHubButton',
    component: PublishToGitHubButton,
    parameters: { layout: 'centered' },
};
export default meta;
export const Loading = {
    args: {
        applicationId: 'app-storybook',
        defaultRepoName: 'my-cool-app',
        initialRemoteUrl: null,
    },
};
export const HasRemote = {
    args: {
        applicationId: 'app-storybook',
        defaultRepoName: 'my-cool-app',
        initialRemoteUrl: 'https://github.com/octocat/my-cool-app',
    },
};
export const Disabled = {
    args: {
        applicationId: 'app-storybook',
        defaultRepoName: 'my-cool-app',
        initialRemoteUrl: null,
        disabled: true,
    },
};
