Skip to main content
Glama
PatientTabsNavigation.tsx1.02 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Paper, Tabs } from '@mantine/core'; import type { JSX } from 'react'; import type { PatientPageTabInfo } from './PatientPage.utils'; interface PatientTabsNavigationProps { tabs: PatientPageTabInfo[]; currentTab: string; onTabChange: (value: string | null) => void; } export function PatientTabsNavigation({ tabs, currentTab, onTabChange }: PatientTabsNavigationProps): JSX.Element { return ( <Paper w="100%"> <Tabs value={currentTab.toLowerCase()} onChange={onTabChange}> <Tabs.List style={{ display: 'flex', width: '100%', overflowX: 'auto', overflowY: 'hidden', flexWrap: 'nowrap', }} > {tabs.map((t) => ( <Tabs.Tab key={t.id} value={t.id}> {t.label} </Tabs.Tab> ))} </Tabs.List> </Tabs> </Paper> ); }

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