Skip to main content
Glama

mcp-google-sheets

data-list.tsx1.17 kB
import React from 'react'; type DataListProps = { data: Record<string, any>; className?: string; }; function formatValue(value: any): string { if (Array.isArray(value)) { return value.join(', '); } if (value === null || value === undefined) { return ''; } if (typeof value === 'object') { return JSON.stringify(value, null, 2); } return String(value); } export const DataList: React.FC<DataListProps> = ({ data, className = '' }) => { const entries = Object.entries(data ?? {}) .map(([key, value]) => [key, formatValue(value)]) .filter(([_, value]) => value !== ''); return ( <div className={`relative rounded-lg bg-background py-4 w-full ${className}`} style={{ minWidth: 0, width: '100%' }} > <dl className="space-y-2 w-full"> {entries.map(([key, value]) => ( <div key={key} className="flex items-start gap-2 w-full"> <dt className="text-sm font-semibold flex-shrink-0 self-start"> {key}: </dt> <dd className="text-sm break-words text-primary flex-1">{value}</dd> </div> ))} </dl> </div> ); };

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