Skip to main content
Glama
PatientInfoItem.tsx1.35 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Box, Group, Text, Tooltip } from '@mantine/core'; import type { Patient } from '@medplum/fhirtypes'; import type { JSX } from 'react'; import styles from './PatientSummary.module.css'; import SummaryItem from './SummaryItem'; export interface PatientInfoItemProps { patient: Patient; value: string | undefined; icon: React.ReactNode; placeholder: string; label: string; onClickResource?: (patient: Patient) => void; } export const PatientInfoItem = (props: PatientInfoItemProps): JSX.Element => { const { patient, value, icon, placeholder, label, onClickResource } = props; const displayText = value || placeholder; return ( <SummaryItem onClick={() => { onClickResource?.(patient); }} > <Box className={styles.patientSummaryListItem}> <Tooltip label={label} position="top-start" openDelay={650}> <Group gap="sm" align="center" ml={6} mr={2} style={{ cursor: 'pointer', flexWrap: 'nowrap', minWidth: 0 }}> {icon} <Text fz="sm" fw={400} truncate c={value ? 'inherit' : 'var(--mantine-color-gray-6)'}> {displayText} </Text> </Group> </Tooltip> </Box> </SummaryItem> ); };

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