import React, { PureComponent } from 'react' import { pathMatchRegexp } from 'utils' import { SearchCard } from 'components' import styles from './styles.less' import * as ycore from 'ycore' import * as antd from 'antd' import * as Icons from '@ant-design/icons'; import Icon from '@ant-design/icons' class GroupIndexer extends PureComponent { constructor(props){ super(props), this.state = { SearchResult: '', loading: true } } toogleLoading(){ this.setState({loading: !this.state.loading}) } componentDidMount(){ try { const {location} = this.props const matchSearch = pathMatchRegexp("/s/:id", location.pathname); const parsed = matchSearch.shift() const raw = parsed.toString() const string = raw.replace('/s/', "") } catch (err) { ycore.notifyError(err) } } EntryComponent = (t, source) => { try { return(
{t}
( )} />
) } catch (error) { console.log(error) return

Render Error

} } render() { const {location} = this.props const matchSearch = pathMatchRegexp("/g/:id", location.pathname); const parsed = matchSearch.shift() const raw = parsed.toString() const string = raw.replace('/g/', "") if (matchSearch) { return(

Results of {string}

{this.state.loading? null : this.renderResult(this.state.SearchResult)}
) } return(
Render Error
) } } export default GroupIndexer