import { ArrowRight } from 'lucide-react'; import DemoEntranceBanner from './DemoEntranceBanner'; import { DEMO_ROLES, DEMO_STAFF_ROLES, demoAppOrigin, demoEntryUrl, type DemoRole } from '../../utils/demoEntrance'; import DemoExitLink from './DemoExitLink'; // One role choice: what this role is, the three things to try, and the way in. A link rather than a // button, because choosing a role goes somewhere; nothing is asked or kept on this page. const RoleCard = ({ demoRole: role, cta, origin }: { demoRole: DemoRole; cta: string; origin: string | undefined }) => { const choice = DEMO_ROLES[role]; const href = demoEntryUrl(role, origin); return (
  • {choice.label}

    {href && ( {cta} )}
  • ); }; // The demo origin is passed in so a test can state it; the page itself reads the reviewed configuration. const DemoLanding = ({ origin = demoAppOrigin() }: { origin?: string }) => (

    Try Akashic

    Explore a fictional clinic as a patient or as its staff. The clinic is set up for your demo visit. When your demo ends, your changes won't carry into the next visitor's clinic.

    {origin ? (

    The demo opens on our test environment, so the address changes when you choose a role.

    ) : (

    The demo is not available right now. Please come back later.

    )}

    Try as a patient

    Try as healthcare staff

      {DEMO_STAFF_ROLES.map((role) => ( ))}

    ); export default DemoLanding;