🤯 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 { create } from 'zustand';
export interface EditingTarget {
anchor: HTMLElement;
avatar?: string;
backgroundColor?: string;
id: string;
memberAvatars?: { avatar?: string; background?: string }[];
title: string;
type: 'group' | 'agentGroup';
}
interface EditingPopoverState {
close: () => void;
open: (target: EditingTarget) => void;
target: EditingTarget | null;
}
export const useEditingPopoverStore = create<EditingPopoverState>((set) => ({
close: () => set({ target: null }),
open: (target) => set({ target }),
target: null,
}));
export const openEditingPopover = (target: EditingTarget) =>
useEditingPopoverStore.getState().open(target);
export const closeEditingPopover = () => useEditingPopoverStore.getState().close();