Skip to main content
Glama

mcp-google-sheets

status-icon-with-text.tsx1.48 kB
import { cva, type VariantProps } from 'class-variance-authority'; import React from 'react'; import { isNil } from '@activepieces/shared'; const statusCodeVariants = cva( 'inline-flex gap-1 rounded px-2.5 py-1 text-xs font-semibold', { variants: { variant: { success: 'bg-success-100 text-success-300', error: 'bg-destructive-100 text-destructive-300', default: 'bg-accent text-accent-foreground', secondary: 'bg-secondary text-secondary-foreground', }, }, defaultVariants: { variant: 'default', }, }, ); interface StatusIconWithTextProps extends VariantProps<typeof statusCodeVariants> { icon: any; text: string; color?: string; textColor?: string; } const StatusIconWithText = React.memo( ({ icon: Icon, text, variant, color, textColor, }: StatusIconWithTextProps) => { if (isNil(color) || isNil(textColor)) { return ( <span className={statusCodeVariants({ variant })}> <Icon className="size-4" /> <span>{text}</span> </span> ); } return ( <span className={statusCodeVariants({ variant })} style={{ backgroundColor: color || undefined }} > <Icon className="size-4" style={{ color: textColor }} /> <span style={{ color: textColor }}>{text}</span> </span> ); }, ); StatusIconWithText.displayName = 'StatusIconWithText'; export { StatusIconWithText };

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