import * as ReactDOM from "react-dom" ; export function findDOMRef ( component , name ) { return ( e ) => { e && ( component [ name ] = ReactDOM . findDOMNode ( e ) ) ; } ; } export function getTranslateName ( type , isReverse ? ) { const isHorizontal = type === "horizontal" ; return `translate${ ( ! isReverse && isHorizontal ) || ( isReverse && ! isHorizontal ) ? "Y" : "X" }` ; }