Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
anchor.ts864 B
import Link from "next/link"; import { ComponentProps, MouseEvent } from "react"; /** * Generate props to disable a Next.js Link component. */ export function linkDisabledProps( disabled: boolean, ): Omit<ComponentProps<typeof Link>, "href"> { return disabled ? { onClick: (e: MouseEvent<HTMLAnchorElement>) => { e.preventDefault(); e.stopPropagation(); }, onAuxClick: (e: MouseEvent<HTMLAnchorElement>) => { e.preventDefault(); e.stopPropagation(); }, prefetch: false, style: { pointerEvents: "inherit", // Cascade the default cursor (e.g. caret for text) in children. cursor: "inherit", textDecoration: "none", color: "inherit", }, tabIndex: -1, "aria-disabled": true, } : {}; }

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/Southclaws/storyden'

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