🤯 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 { useAgentStore } from '@/store/agent';
export const usePinnedAgentState = () => {
const isPinned = useAgentStore((s) => s.isAgentPinned);
const setAgentPinned = useAgentStore((s) => s.setAgentPinned);
const toggleAgentPinned = useAgentStore((s) => s.toggleAgentPinned);
return [
isPinned,
{
pinAgent: () => setAgentPinned(true),
setIsPinned: setAgentPinned,
togglePinAgent: toggleAgentPinned,
unpinAgent: () => setAgentPinned(false),
},
] as const;
};