🤯 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, useResponsive } from '@lobehub/ui';
import { memo } from 'react';
import { useQueryState } from '@/hooks/useQueryParam';
import Sidebar from '../Sidebar';
import Nav, { GroupAgentNavKey } from './Nav';
import Overview from './Overview';
import SystemRole from './SystemRole';
import Versions from './Versions';
const Details = memo<{ mobile?: boolean }>(({ mobile: isMobile }) => {
const { mobile = isMobile } = useResponsive();
const [activeTab, setActiveTab] = useQueryState('activeTab', {
clearOnDefault: true,
defaultValue: GroupAgentNavKey.Overview,
});
return (
<Flexbox gap={24}>
<Nav activeTab={activeTab as GroupAgentNavKey} mobile={mobile} setActiveTab={setActiveTab} />
<Flexbox
gap={48}
horizontal={!mobile}
style={mobile ? { flexDirection: 'column-reverse' } : undefined}
>
<Flexbox
width={'100%'}
style={{
overflow: 'hidden',
}}
>
{activeTab === GroupAgentNavKey.Overview && <Overview />}
{activeTab === GroupAgentNavKey.SystemRole && <SystemRole />}
{activeTab === GroupAgentNavKey.Versions && <Versions />}
</Flexbox>
<Sidebar mobile={mobile} />
</Flexbox>
</Flexbox>
);
});
export default Details;