Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

411 B
Raw Blame
import { createContext, useContext } from "react";
import type { ConnectorAppScope } from "../../data/api";

/** Whose apps the cards under it change: the server's, unless an
 * organization's page says otherwise. */
export const ConnectorAppScopeContext = createContext<ConnectorAppScope>("server");

export function useConnectorAppScope(): ConnectorAppScope {
  return useContext(ConnectorAppScopeContext);
}