import React from 'react' export interface CalloutContent { step: string title: string body: string } /** * Commentary on what a walkthrough is doing at the current stage, floating in * the corner of the viewport so it stays out of the page's flow. * * The demo pages announce each stage through their own live region, so this is * hidden from assistive technology rather than repeating it. */ export const DemoCallout: React.FC<{ callout?: CalloutContent }> = ({ callout }) => callout // Keyed on the content rather than the stage: consecutive stages can // share a callout, and remounting between them replays the entrance // animation as a flicker. ? : null