import React from 'react' import { __ } from '@wordpress/i18n' interface DemoMessageProps { speaker: 'user' | 'assistant' children: React.ReactNode } export const DemoMessage: React.FC = ({ speaker, children }) =>
{'user' === speaker ? __('You', 'code-snippets') : __('AI Agent', 'code-snippets')}
{children}
export const DemoTyping: React.FC<{ label: string }> = ({ label }) =>
{label}
/** * Stand-in for the round trip the real agent makes to Code Snippets Cloud. It * carries no state of its own — the parent decides when the trip is in flight. */ export const DemoTransit: React.FC<{ label: string }> = ({ label }) =>
{__('Your site', 'code-snippets')}