import { jsx as _jsx } from "react/jsx-runtime";
import { fn } from '@storybook/test';
import { GitHubUrlInput } from './github-url-input.js';
const meta = {
    title: 'Composed/GitHubUrlInput',
    component: GitHubUrlInput,
    tags: ['autodocs'],
    parameters: {
        layout: 'centered',
    },
    args: {
        onSubmit: fn().mockName('onSubmit'),
    },
    decorators: [
        (Story) => (_jsx("div", { style: { width: 400 }, children: _jsx(Story, {}) })),
    ],
};
export default meta;
export const Default = {};
export const Loading = {
    args: {
        loading: true,
    },
};
export const WithError = {
    // Render pre-filled with invalid URL to demonstrate error state on submit
    render: (args) => _jsx(GitHubUrlInput, { ...args }),
};
export const Empty = {};
