Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import { memo } from 'react';
import { AuthorHeader } from '@librechat/chat/components';
import { useAuthorContext } from '~/Providers';
/**
* Restates the message author where content resumes after a steer, reading the
* author from `AuthorContext`.
*
* A header element built from the author changes identity when the author
* resolves, and handing that element to the memoized parts tree re-rendered every
* part of the message. Rendered through this component, the element a caller hands
* down never changes, and an author update re-renders only the headers on screen.
*/
const ResumeAuthorHeader = memo(function ResumeAuthorHeader() {
const author = useAuthorContext();
if (author == null) {
return null;
}
return <AuthorHeader icon={author.icon} label={author.label} />;
});
export default ResumeAuthorHeader;