import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { SidebarProvider, SidebarInset } from '../../ui/sidebar';
import { AppSidebar } from './app-sidebar';
const meta = {
    title: 'Layout/AppSidebar',
    component: AppSidebar,
    parameters: {
        layout: 'fullscreen',
    },
    tags: ['autodocs'],
    decorators: [
        (Story, context) => {
            const defaultOpen = context.parameters?.sidebar?.defaultOpen ?? true;
            return (_jsxs(SidebarProvider, { defaultOpen: defaultOpen, children: [_jsx(Story, {}), _jsx(SidebarInset, { "aria-label": "Main content", children: _jsx("div", { className: "flex items-center gap-2 border-b px-4 py-2", children: _jsx("span", { className: "text-muted-foreground text-sm", children: "Content area" }) }) })] }));
        },
    ],
};
export default meta;
const mockFeatures = [
    { name: 'Auth Module', status: 'action-needed' },
    { name: 'Payment Flow', status: 'action-needed' },
    { name: 'Dashboard', status: 'in-progress', startedAt: Date.now() - 330_000 },
    { name: 'API Gateway', status: 'in-progress', startedAt: Date.now() - 60_000 },
    { name: 'Settings Page', status: 'done', duration: '2h' },
    { name: 'User Profile', status: 'done', duration: '1h' },
];
export const Default = {
    args: {
        features: mockFeatures,
    },
};
export const Collapsed = {
    args: {
        features: mockFeatures,
    },
    parameters: {
        sidebar: { defaultOpen: false },
    },
};
export const Empty = {
    args: {
        features: [],
    },
};
export const AllInProgress = {
    args: {
        features: [
            { name: 'Feature A', status: 'in-progress', startedAt: Date.now() - 120_000 },
            { name: 'Feature B', status: 'in-progress', startedAt: Date.now() - 600_000 },
        ],
    },
};
export const AllDone = {
    args: {
        features: [
            { name: 'Feature A', status: 'done', duration: '30m' },
            { name: 'Feature B', status: 'done', duration: '1h' },
            { name: 'Feature C', status: 'done', duration: '3h' },
        ],
    },
};
