Skip to main content
Glama
modal_utils.ts332 B
import { computed, Ref } from "vue"; import Modal from "./Modal.vue"; export function useModal( modalRef: Ref<InstanceType<typeof Modal> | undefined>, ) { return { isOpen: computed(() => !!modalRef.value?.isOpen), open() { modalRef.value?.open(); }, close() { modalRef.value?.close(); }, }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server