import React from "react"
import FileBrowser from "./components/FileBrowser"
import { BrowserRouter as Router, Switch, Route, Redirect } from "react-router-dom"
import NotFound from "./components/NotFound"
  
const App: React.FC = () => {
	return (
		<div>
			<Router>
				<Switch>
					<Route path="/f/" component={FileBrowser}/>
					<Redirect from="/" exact to="/f/" />
					<Route path="*" component={NotFound} />
				</Switch>
			</Router>
		</div>
	)
}

export default App
