text: import React from 'react';
  import { Switch, Redirect } from 'react-router-dom';
  
  import { RouteWithLayout } from './components';
  import { Main as MainLayout, Minimal as MinimalLayout } from './layouts';
  
  import {
    Dashboard as DashboardView,
    ProductList as ProductListView,
    TaskList as TaskListView,
    Typography as TypographyView,
    Icons as IconsView,
    Account as AccountView,
    Settings as SettingsView,
    SignUp as SignUpView,
    SignIn as SignInView,
    NotFound as NotFoundView
  } from './views';
  
  const Routes = () => {
    return (
      <Switch>
        <Redirect
          exact
          from="/"
          to="/dashboard"
        />
        <RouteWithLayout
          component={DashboardView}
          exact
          layout={MainLayout}
          path="/dashboard"
        />
        <RouteWithLayout
          component={TaskListView}
          exact
          layout={MainLayout}
          path="/tasks"
        />
        <RouteWithLayout
          component={SignUpView}
          exact
          layout={MinimalLayout}
          path="/sign-up"
        />
        <RouteWithLayout
          component={SignInView}
          exact
          layout={MinimalLayout}
          path="/login"
        />
        <RouteWithLayout
          component={NotFoundView}
          exact
          layout={MinimalLayout}
          path="/not-found"
        />
        <Redirect to="/not-found" />
      </Switch>
    );
  };
  
  export default Routes;
  