🤯 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 { type PortalMoreMenuConfig } from '@/features/Portal/components/PortalMoreMenu/types';
import { useChatStore } from '@/store/chat';
import { chatPortalSelectors } from '@/store/chat/selectors';
export const useMessageDetailMoreMenu = (): PortalMoreMenuConfig | undefined => {
const [messageId, refreshMessages] = useChatStore((s) => [
chatPortalSelectors.messageDetailId(s),
s.refreshMessages,
]);
if (!messageId) return;
return {
copyId: messageId,
// The body reads the message out of the active conversation's list.
refresh: () => refreshMessages(),
};
};