🤯 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
'use client';
import { Flexbox } from '@lobehub/ui';
import { memo } from 'react';
import DataStatistics from '@/features/User/DataStatistics';
import UserInfo from '@/features/User/UserInfo';
import UserLoginOrSignup from '@/features/User/UserLoginOrSignup/Community';
import WorkspaceLink from '@/features/Workspace/WorkspaceLink';
import { useUserStore } from '@/store/user';
import { authSelectors } from '@/store/user/selectors';
const UserBanner = memo(() => {
const isLoginWithAuth = useUserStore(authSelectors.isLoginWithAuth);
const [signIn] = useUserStore((s) => [s.openLogin]);
return (
<Flexbox gap={12} paddingBlock={8}>
{isLoginWithAuth ? (
<>
<WorkspaceLink style={{ color: 'inherit' }} to="/settings/profile">
<UserInfo />
</WorkspaceLink>
<WorkspaceLink style={{ color: 'inherit' }} to="/settings/stats">
<DataStatistics paddingInline={12} />
</WorkspaceLink>
</>
) : (
<UserLoginOrSignup
onClick={() => {
signIn();
}}
/>
)}
</Flexbox>
);
});
export default UserBanner;