import type { Meta, StoryObj } from '@storybook/react';
import { Sidebar } from './Sidebar';

const meta = {
    title: 'App/Layouts/Sidebar',
    component: Sidebar,
    tags: ['autodocs'],
    decorators: [
        (Story) => (
            <div className="flex h-screen bg-kodo-void">
                <Story />
                <div className="flex-1 p-8 text-white ml-20 lg:ml-72">
                    <h1>Main Content Area</h1>
                    <p>Resize the viewport to see responsive behavior.</p>
                </div>
            </div>
        ),
    ],
    parameters: {
        layout: 'fullscreen',
    },
} satisfies Meta<typeof Sidebar>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
    args: {
        currentView: 'dashboard',
    },
};

export const StudioActive: Story = {
    args: {
        currentView: 'studio',
    },
};
