import { Observable } from "babylonjs/Misc/observable" ; import * as React from "react" ; interface IPerformancePlayheadButtonProps { returnToPlayhead : Observable < void > ; } export const PerformancePlayheadButtonComponent = ( { returnToPlayhead } ) => { const onReturnToPlayheadClick = ( ) => { returnToPlayhead . notifyObservers ( ) ; } ; return ( < button className = "performancePlayheadButton" onClick = { onReturnToPlayheadClick } title = "Return to Playhead" > Return < /button>); } ;