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

const meta = {
    title: 'Components/Layout/Sidebar',
    component: Sidebar,
    tags: ['autodocs'],
    decorators: [
        (Story) => (
            <BrowserRouter>
                <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>
            </BrowserRouter>
        ),
    ],
    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',
    },
};
