import type { Meta, StoryFn } from '@storybook/react' import React from 'react' import MessageBubble from '.' const meta: Meta = { title: 'MessageBubble', parameters: { layout: 'fullscreen' }, } export default meta const Canvas = ({ children }: { children: React.ReactNode }) => (
{children}
) const Row = ({ label, align = 'start', children, }: { label: string align?: 'start' | 'end' children: React.ReactNode }) => (

{label}

{children}
) const SHORT = 'Hey! Thanks for reaching out 👋' const LONG = 'Absolutely — I have a couple of slots free next week. Happy to send over the full brief and pricing so you can take a look before we lock anything in.' const MULTILINE = 'Line one\nLine two\nLine three' /** Design-review matrix: both variants across tail, length, and header. */ export const Gallery: StoryFn = () => ( ) /** * Stacks bulk-reply confirmation: preview an outgoing message as the *visitor* * will receive it — the recipient (grey, left) treatment despite being your * own text. */ export const PreviewToRecipient: StoryFn = () => ( ) /** * Stacks responded-summary: preview a sent reply as it looks *to you in the * channel* — the sender (dark, right) treatment. */ export const PreviewInChannel: StoryFn = () => ( )