veza/apps/web/src/components/views/GearView.stories.tsx
2026-02-05 20:38:59 +01:00

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.' },
};