import * as React from "react" ; export interface IButtonLineComponentProps { data : string ; tooltip : string ; } export class DraggableLineComponent extends React . Component < IButtonLineComponentProps > { constructor ( props ) { super ( props ) ; } render ( ) { return ( < div className = "draggableLine" title = { this . props . tooltip } draggable = { true } onDragStart = { ( event ) => { event . dataTransfer . setData ( "babylonjs-material-node" , this . props . data ) ; } } > { this . props . data . replace ( "Block" , "" ) } < /div>); } }