We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devsung94/next-mcp-test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
use-display-mode.ts•587 B
/**
* Source: https://github.com/openai/openai-apps-sdk-examples/tree/main/src
*/
import { useOpenAIGlobal } from "./use-openai-global";
import type { DisplayMode } from "./types";
/**
* Hook to get the current display mode of the widget.
*
* @returns The current display mode ("pip" | "inline" | "fullscreen") or null if not available
*
* @example
* ```tsx
* const displayMode = useDisplayMode();
* if (displayMode === "fullscreen") {
* // Render full UI
* }
* ```
*/
export function useDisplayMode(): DisplayMode | null {
return useOpenAIGlobal("displayMode");
}