import BDV2 from "../../modules/v2"; import SearchIcon from "../icons/search"; const React = BDV2.React; export default class Search extends React.Component { constructor(props){ super(props) this.state = { focused: false } } render() { const className = ["bd-search-wrapper"] if(this.state.focused)className.push("focused") return
{ this.setState({focused: true}) }} onBlur={() => { this.setState({focused: false}) }}/>
; } }