import { useStore } from '../../hooks/useStore'; import type { SolidFlowState } from '../../types'; import { JSX, Show } from 'solid-js'; const style: JSX.CSSProperties = { display: 'none' }; const ariaLiveStyle: JSX.CSSProperties = { position: 'absolute', width: '1px', height: '1px', margin: '-1px', border: 0, padding: 0, overflow: 'hidden', clip: 'rect(0px, 0px, 0px, 0px)', 'clip-path': 'inset(100%)', }; export const ARIA_NODE_DESC_KEY = 'react-flow__node-desc'; export const ARIA_EDGE_DESC_KEY = 'react-flow__edge-desc'; export const ARIA_LIVE_MESSAGE = 'react-flow__aria-live'; const selector = (s: SolidFlowState) => s.ariaLiveMessage; function AriaLiveMessage(p: { rfId: string }) { const ariaLiveMessage = useStore(selector); return (