2026-02-02 19:55:57 +00:00
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
|
import { ChatInterface } from './ChatInterface';
|
2026-02-06 13:24:41 +00:00
|
|
|
import { ChatInterfaceSkeleton } from './chat-interface';
|
2026-02-02 19:55:57 +00:00
|
|
|
|
|
|
|
|
const meta = {
|
2026-02-06 13:24:41 +00:00
|
|
|
title: 'Components/Features/Chat/ChatInterface',
|
|
|
|
|
component: ChatInterface,
|
|
|
|
|
tags: ['autodocs'],
|
|
|
|
|
argTypes: {
|
|
|
|
|
onRoomChange: { action: 'room changed' },
|
|
|
|
|
},
|
|
|
|
|
decorators: [
|
|
|
|
|
(Story) => (
|
|
|
|
|
<div className="min-h-layout-page border rounded-lg overflow-hidden">
|
|
|
|
|
<Story />
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
],
|
2026-02-02 19:55:57 +00:00
|
|
|
} satisfies Meta<typeof ChatInterface>;
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
|
|
export const Default: Story = {
|
2026-02-06 13:24:41 +00:00
|
|
|
args: {
|
|
|
|
|
room: 'general',
|
|
|
|
|
},
|
2026-02-02 19:55:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const ProductionRoom: Story = {
|
2026-02-06 13:24:41 +00:00
|
|
|
args: {
|
|
|
|
|
room: 'production-help',
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const Loading: Story = {
|
|
|
|
|
name: 'Loading',
|
|
|
|
|
render: () => <ChatInterfaceSkeleton />,
|
2026-02-02 19:55:57 +00:00
|
|
|
};
|