import * as React from 'react'; import { isFluentTrigger } from './isFluentTrigger'; /** * @internal * Gets the trigger element of a FluentTriggerComponent (such as Tooltip or MenuTrigger). * * In the case where the immediate child is itself a FluentTriggerComponent and/or React Fragment, * it returns the first descendant that is _not_ a FluentTriggerComponent or Fragment. * This allows multiple triggers to be stacked, and still apply their props to the actual trigger element. * * For example, the following returns `
`: * ```jsx * getTriggerChild( *