Skip to main content
Glama
App.tsx1.11 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Title } from '@mantine/core'; import { AppShell, Container, Logo, Panel, useMedplum, useMedplumProfile } from '@medplum/react'; import type { JSX } from 'react'; import { Link, Route, Routes } from 'react-router'; import { HomePage } from './pages/HomePage'; import { SignInPage } from './pages/SignInPage'; export function App(): JSX.Element { const medplum = useMedplum(); const profile = useMedplumProfile(); if (medplum.isLoading()) { return <div>Loading...</div>; } return ( <AppShell logo={<Logo size={24} />}> <Routes> <Route path="/" element={profile ? <HomePage /> : <SignInPage />} /> <Route path="/signin" element={<SignInPage />} /> <Route path="*" element={<NotFound />} /> </Routes> </AppShell> ); } function NotFound(): JSX.Element { return ( <Container size="sm"> <Panel> <Title>404: Page not found</Title> <Link to="/">Go to home page</Link> </Panel> </Container> ); }

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