Skip to main content
Glama
useSuccessAnimation.ts•708 B
import { useState } from 'react'; interface SuccessAnimationOptions { type?: 'booking' | 'payment' | 'completion' | 'achievement'; title: string; message: string; duration?: number; autoClose?: boolean; } export const useSuccessAnimation = () => { const [isVisible, setIsVisible] = useState(false); const [animationProps, setAnimationProps] = useState<SuccessAnimationOptions | null>(null); const showSuccess = (options: SuccessAnimationOptions) => { setAnimationProps(options); setIsVisible(true); }; const hideSuccess = () => { setIsVisible(false); setAnimationProps(null); }; return { isVisible, animationProps, showSuccess, hideSuccess }; };

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/ChiragPatankar/MCP'

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