import React from "react";
import { BrowserRouter as Router, Switch, Route, Redirect } from "react-router-dom";
// import { Home } from "~/views/home/index";
import { Home } from "~/views/home";
import { User } from "~/views/user/index";
import { Me } from "~/views/me/index";
import { VideoList } from "~/views/videoList/index";
import { Layout } from "~/views/Layout";
import { VideoKindList } from "./views/videokindList";
import { DownloadCaigong1 } from "./views/downloadCaigong1";
import { DownloadCaigong2 } from "./views/downloadCaigong2";
export function App() {
  return (
    <Router>
      <Switch>
        <Route exact path="/">
          <VideoKindList />
        </Route>
        <Route path="/home">
          <Home />
        </Route>
        <Route path="/user">
          <User />
        </Route>
        <Route path="/me">
          <Me />
        </Route>
        <Route path="/videoList">
          <VideoList />
        </Route>

        <Route path="/videoKindList">
          <VideoKindList />
        </Route>

        <Route path="/downloadCaigong1">
          <DownloadCaigong1 />
        </Route>
        <Route path="/downloadCaigong2">
          <DownloadCaigong2 />
        </Route>
      </Switch>
    </Router>
  );
}
