import type { Meta, StoryObj } from '@storybook/react' import { ChatContainer } from './chat-container' import { ThinkingIndicator } from './thinking-indicator' const meta: Meta = { title: 'Chat/ThinkingIndicator', component: ThinkingIndicator, parameters: { layout: 'fullscreen', backgrounds: { default: 'dark' }, }, decorators: [ (Story) => (
), ], } export default meta type Story = StoryObj /** * Animated state — the component starts at elapsed=0 and ticks up. * In Storybook you'll see the bouncing dots and text update live. */ export const Default: Story = {} /** * Show it inline below a chat message to simulate the agent responding. */ export const InContext: Story = { render: () => (
Let me analyze the rate limiter implementation and check the Redis pipeline for atomicity issues.
), } /** * The production handoff state: the user's message is already visible while * the first assistant event has not arrived yet. */ export const PendingChatResponse: Story = { render: () => (
), } /** * Multiple indicators to show staggered animation timing. */ export const Stacked: Story = { render: () => (
), }