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 { Folder } from 'lucide-react';
import { Link } from 'react-router-dom';
import { useProjectQuery } from '~/data-provider';
import { useLocalize } from '~/hooks';
function ProjectBadge({ projectId }: { projectId: string }) {
const localize = useLocalize();
const { data: project } = useProjectQuery(projectId);
const name = project?.name ?? localize('com_ui_project');
return (
<div className="pointer-events-none absolute inset-x-0 top-12 z-5 flex justify-center px-3 md:top-14">
<Link
to={`/projects/${encodeURIComponent(projectId)}`}
className="border-border-light bg-surface-secondary text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary pointer-events-auto inline-flex h-7 max-w-full items-center gap-1.5 rounded-full border ps-2.5 pe-3 text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
aria-label={localize('com_ui_project_open_workspace', { name })}
>
<Folder className="size-3.5 shrink-0" aria-hidden="true" />
<span className="truncate">{name}</span>
</Link>
</div>
);
}
export default memo(ProjectBadge);