Skip to main content
Glama
InfoSection.tsx983 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Card, CloseButton, Title } from '@mantine/core'; import type { JSX, ReactNode } from 'react'; import classes from './InfoSection.module.css'; interface InfoSectionProps { readonly title?: string | JSX.Element; readonly children: ReactNode; readonly onButtonClick?: (id: string) => void; readonly resourceType?: string; readonly id?: string; } export function InfoSection({ title, children, onButtonClick, id = '' }: InfoSectionProps): JSX.Element { return ( <Card withBorder radius="md" shadow="sm" p="xl" mb="xl" w="100%"> {title && ( <Card.Section className={classes.titleSection}> <Title order={4} className={classes.title}> {title} </Title> {onButtonClick && <CloseButton onClick={() => onButtonClick(id)} />} </Card.Section> )} {children} </Card> ); }

Latest Blog Posts

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

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