import React, { Component } from 'react'; import {Link} from 'react-router-dom' const map={"blue":"colorblue","white":"colorwhite","grey":"colorgrey", 'orange': "color-orange",'colorgrey9':'color-grey-9'} class WordsBtn extends Component { constructor(props) { super(props); } render() { let{to, href,targets, style2, style, className, ...others }=this.props return( { to==undefined&&targets==undefined ? {this.props.children}: targets!=undefined? {this.props.children} : {this.props.children} } ) } } export default WordsBtn;