import Deposit from './Deposit'
import ClusterInfo from './ClusterInfo'
import Well from "./Well";
import LayoutPortal from '../components/LayoutPortal'
import {Redirect, Route, Switch} from "react-router-dom";

export default function Main() {

  return (    
      <Switch>
        <Route path="/well/:idWell/">
          <LayoutPortal>
            <Well/>
          </LayoutPortal>
        </Route>
        <Route path="/deposit">
          <LayoutPortal noSheet>
            <Deposit/>
          </LayoutPortal>
        </Route>
        <Route path="/cluster/:id/:tab">
          <LayoutPortal>
            <ClusterInfo />
          </LayoutPortal>
        </Route>
        <Route path="/">
          <Redirect to={{pathname: `/deposit`}}/>
        </Route>
      </Switch>
  )
}
