import * as React from 'react'; import Trigger from 'rc-trigger/lib/mock'; import type { TriggerProps } from 'rc-trigger'; import { TriggerMockContext } from '../shared/demoTestContext'; const ForwardTrigger = React.forwardRef((props, ref) => { const mergedPopupVisible = React.useContext(TriggerMockContext) ?? props.popupVisible; (global as any).triggerProps = props; return ; }); export default ForwardTrigger;