Skip to main content
Glama

MCP Agent - AI Expense Tracker

by dev-muhammad
DeleteSessionModal.tsx•1.32 kB
import { type FC } from 'react' import { Button } from '@/components/ui/button' import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog' interface DeleteSessionModalProps { isOpen: boolean onClose: () => void onDelete: () => Promise<void> isDeleting: boolean } const DeleteSessionModal: FC<DeleteSessionModalProps> = ({ isOpen, onClose, onDelete, isDeleting }) => ( <Dialog open={isOpen} onOpenChange={onClose}> <DialogContent className="font-geist"> <DialogHeader> <DialogTitle>Confirm deletion</DialogTitle> <DialogDescription> This will permanently delete the session. This action cannot be undone. </DialogDescription> </DialogHeader> <DialogFooter> <Button variant="outline" className="rounded-xl border-border font-geist" onClick={onClose} disabled={isDeleting} > CANCEL </Button> <Button variant="destructive" onClick={onDelete} disabled={isDeleting} className="rounded-xl font-geist" > DELETE </Button> </DialogFooter> </DialogContent> </Dialog> ) export default DeleteSessionModal

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/dev-muhammad/MCPAgent'

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