import React from "react"
import style from "./index.module.scss"
import { useLocation, Route, Switch, useHistory } from "react-router-dom"
import html from "./a.md"

function Test() {
  return <div>test</div>
}

export default function About(props: any) {
  let history = useHistory()
  // let location = useLocation()
  function back(){
    console.log(1231);
    history.replace("/about")
  }

  // console.log(html)

  return (
    <div className={`container ${style.about}`}>
      <div className={"bp3-running-text bp3-text-large"}>
         {html}
      </div>
      {/*<div onClick={() =>back()}>阿萨 阿松大asdasd</div>*/}
      {/*<div>22{props.children}{location.href}</div>*/}
      {/*<p>sadsa</p>*/}
      {/*<p>sadsa</p>*/}
      {/*<Route path="/about/aa" exact={true}>*/}
      {/*  <Test></Test>*/}
      {/*</Route>*/}
    </div>
  )
}
