Skip to main content
Glama

mcp-google-sheets

flow-end-widget-node.tsx1.14 kB
import { Handle, Position } from '@xyflow/react'; import { t } from 'i18next'; import { useRef } from 'react'; import { flowUtilConsts } from '../utils/consts'; import { ApGraphEndNode } from '../utils/types'; const ApGraphEndWidgetNode = ({ data }: Omit<ApGraphEndNode, 'position'>) => { const elementRef = useRef<HTMLDivElement>(null); return ( <> <div className="h-[1px] w-[1px] relative"> {data.showWidget && ( <div ref={elementRef} style={{ left: `-${(elementRef.current?.clientWidth || 0) / 2}px` }} className="px-2.5 absolute py-1.5 bg-accent text-foreground/70 rounded-full animate-fade" key={'flow-end-button'} > {t('End')} </div> )} </div> <Handle type="target" position={Position.Top} style={flowUtilConsts.HANDLE_STYLING} /> <Handle type="source" position={Position.Bottom} style={flowUtilConsts.HANDLE_STYLING} /> </> ); }; ApGraphEndWidgetNode.displayName = 'ApGraphEndWidgetNode'; export default ApGraphEndWidgetNode;

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