Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

342 B
Raw Blame
import { createContext, useContext } from "react";

/**
 * Shared actions (e.g. 在访达中显示) lead with an IconTile when they sit in a PopupMenu and
 * keep their plain icon elsewhere, without every caller passing a flag.
 */
export const InPopupMenu = createContext(false);
export const useInPopupMenu = () => useContext(InPopupMenu);