import { jsx as _jsx } from "react/jsx-runtime";
import { ContributorLeaderboard } from './ContributorLeaderboard.js';
import { ContributorLane, ContributorLevel } from '../../../../../packages/core/src/domain/generated/output.js';
const meta = {
    title: 'Contributors/ContributorLeaderboard',
    component: ContributorLeaderboard,
    parameters: { layout: 'padded' },
    decorators: [
        (Story) => (_jsx("div", { className: "mx-auto max-w-2xl", children: _jsx(Story, {}) })),
    ],
};
export default meta;
const entries = [
    {
        login: 'octocat',
        displayName: 'The Octocat',
        avatarUrl: 'https://avatars.githubusercontent.com/u/583231?v=4',
        prCount: 42,
        level: ContributorLevel.Maintainer,
        lane: ContributorLane.Agents,
    },
    {
        login: 'mona',
        displayName: 'Mona Lisa',
        prCount: 18,
        level: ContributorLevel.Core,
        lane: ContributorLane.Cli,
    },
    {
        login: 'hubot',
        prCount: 11,
        level: ContributorLevel.Contributor,
        lane: ContributorLane.Docs,
    },
    {
        login: 'ada',
        displayName: 'Ada Lovelace',
        prCount: 7,
        level: ContributorLevel.Contributor,
        lane: ContributorLane.Ui,
    },
    {
        login: 'grace',
        prCount: 4,
        level: ContributorLevel.Contributor,
        lane: ContributorLane.Infra,
    },
    {
        login: 'tim',
        prCount: 2,
        level: ContributorLevel.Contributor,
    },
    {
        login: 'newcomer',
        prCount: 1,
        level: ContributorLevel.User,
    },
];
export const Default = {
    args: {
        scope: 'month',
        entries,
    },
};
export const AllTime = {
    args: {
        scope: 'allTime',
        entries,
    },
};
export const Loading = {
    args: {
        scope: 'month',
        entries: [],
        loading: true,
    },
};
export const Empty = {
    args: {
        scope: 'month',
        entries: [],
    },
};
export const ErrorState = {
    args: {
        scope: 'month',
        entries: [],
        error: 'Database connection refused',
    },
};
