Skip to main content
Glama

mcp-google-sheets

shortcut.tsx1.03 kB
import { cn } from '@/lib/utils'; const toTitleCase = (str: string) => { return str .toLowerCase() .split(' ') .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) .join(' '); }; export type ShortcutProps = { //can't name it key because it conflicts with the key prop of the component shortcutKey: string; withCtrl?: boolean; withShift?: boolean; shouldNotPreventDefault?: boolean; }; export const Shortcut = ({ shortcutKey, withCtrl, withShift, className, }: ShortcutProps & { className?: string }) => { const isMac = /(Mac)/i.test(navigator.userAgent); const isEscape = shortcutKey?.toLocaleLowerCase() === 'esc'; return ( <span className={cn( 'flex-grow text-xs tracking-widest text-muted-foreground', className, )} > {!isEscape && withCtrl && (isMac ? '⌘' : 'Ctrl')} {!isEscape && withShift && 'Shift'} {!isEscape && (withCtrl || withShift) && ' + '} {shortcutKey && toTitleCase(shortcutKey)} </span> ); };

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/activepieces/activepieces'

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