36 lines
803 B
TypeScript
36 lines
803 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { GearView } from './GearView';
|
|
|
|
const meta: Meta<typeof GearView> = {
|
|
title: 'Components/Features/Views/GearView',
|
|
component: GearView,
|
|
parameters: { layout: 'fullscreen' },
|
|
tags: ['autodocs'],
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="bg-background min-h-layout-main w-full">
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {};
|
|
|
|
/** Loading state — skeleton */
|
|
export const Loading: Story = {
|
|
args: { isLoading: true },
|
|
};
|
|
|
|
/** Empty state — no gear items */
|
|
export const Empty: Story = {
|
|
args: { itemsOverride: [] },
|
|
};
|
|
|
|
/** Error state */
|
|
export const Error: Story = {
|
|
args: { error: 'Failed to load inventory.' },
|
|
};
|