import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' import ThinkBlock from './think-block' import { ChatContextProvider } from '@/app/components/base/chat/chat/context' const THOUGHT_TEXT = ` Gather docs from knowledge base. Score snippets against query. [ENDTHINKFLAG] ` const ThinkBlockDemo = ({ responding = false, }: { responding?: boolean }) => { const [isResponding, setIsResponding] = useState(responding) return (
Think block
            {THOUGHT_TEXT}
          
) } const meta = { title: 'Base/Data Display/ThinkBlock', component: ThinkBlockDemo, parameters: { layout: 'centered', docs: { description: { component: 'Expandable chain-of-thought block used in chat responses. Toggles between “thinking” and completed states.', }, }, }, argTypes: { responding: { control: 'boolean' }, }, args: { responding: false, }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = {}