Skip to main content
Glama
ResourceBadge.tsx761 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Group } from '@mantine/core'; import type { Reference, Resource } from '@medplum/fhirtypes'; import type { JSX } from 'react'; import { ResourceAvatar } from '../ResourceAvatar/ResourceAvatar'; import { ResourceName } from '../ResourceName/ResourceName'; export interface ResourceBadgeProps { readonly value?: Reference | Resource; readonly link?: boolean; } export function ResourceBadge(props: ResourceBadgeProps): JSX.Element { return ( <Group gap="xs"> <ResourceAvatar size={24} radius={12} value={props.value} link={props.link} /> <ResourceName value={props.value} link={props.link} /> </Group> ); }

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