export default function InlineResult({ error, loading, response, streamingText, selectedModel, loadingLabel, placeholderText }) { return ( <> {error && (
{error}
)} {loading && (
{streamingText ? 'Generating…' : (loadingLabel || 'Processing…')} {selectedModel}

{streamingText || ( {placeholderText || loadingLabel || 'Waiting for model…'} )}

)} {response && !loading && (
Summary {response.model ?? 'phi4-mini'}

{response.summary}

)} ) }