🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { Flexbox } from '@lobehub/ui';
import { type FC } from 'react';
import { Outlet } from 'react-router';
import { isDesktop } from '@/const/version';
import { AgentNotFoundGuard } from '@/features/AgentNotFound';
import AgentSidebar from '@/features/AgentSidebar';
import ProtocolUrlHandler from '@/features/ProtocolUrlHandler';
import AgentIdSync from '@/routes/(main)/agent/_layout/AgentIdSync';
import PortalAutoCollapse from './PortalAutoCollapse';
import RegisterHotkeys from './RegisterHotkeys';
import { styles } from './style';
const Layout: FC = () => {
return (
<>
<AgentSidebar />
<Flexbox className={styles.mainContainer} flex={1} height={'100%'}>
{/* Keep the sidebar interactive when the routed agent is gone (deleted
or made private) — only the content area collapses to the 404 card. */}
<AgentNotFoundGuard showAgentList>
<Outlet />
</AgentNotFoundGuard>
</Flexbox>
<RegisterHotkeys />
{isDesktop && <ProtocolUrlHandler />}
<AgentIdSync />
<PortalAutoCollapse />
</>
);
};
export default Layout;