import { lazy } from 'react'
import { Route } from 'react-router-dom'

const Clients = lazy(() => import('../components/Dashboard/Sales/Clients.jsx'))
const ClientInfo = lazy(
  () => import('../components/Dashboard/Sales/Clients/ClientInfo.jsx')
)
const SalesOrders = lazy(
  () => import('../components/Dashboard/Sales/SalesOrders.jsx')
)
const SalesOrderInfo = lazy(
  () => import('../components/Dashboard/Sales/SalesOrders/SalesOrderInfo.jsx')
)
const SalesOverview = lazy(
  () => import('../components/Dashboard/Sales/SalesOverview.jsx')
)
const Marketplaces = lazy(
  () => import('../components/Dashboard/Sales/Marketplaces.jsx')
)
const MarketplaceInfo = lazy(
  () => import('../components/Dashboard/Sales/Marketplaces/MarketplaceInfo.jsx')
)
const Listings = lazy(
  () => import('../components/Dashboard/Sales/Listings.jsx')
)
const ListingInfo = lazy(
  () => import('../components/Dashboard/Sales/Listings/ListingInfo.jsx')
)
const ListingVarientInfo = lazy(
  () =>
    import('../components/Dashboard/Sales/ListingVarients/ListingVarientInfo.jsx')
)

const SalesRoutes = [
  <Route key='overview' path='sales/overview' element={<SalesOverview />} />,
  <Route key='clients' path='sales/clients' element={<Clients />} />,
  <Route
    key='clients-info'
    path='sales/clients/info'
    element={<ClientInfo />}
  />,
  <Route
    key='salesorders'
    path='sales/salesorders'
    element={<SalesOrders />}
  />,
  <Route
    key='salesorders-info'
    path='sales/salesorders/info'
    element={<SalesOrderInfo />}
  />,
  <Route
    key='marketplaces'
    path='sales/marketplaces'
    element={<Marketplaces />}
  />,
  <Route
    key='marketplaces-info'
    path='sales/marketplaces/info'
    element={<MarketplaceInfo />}
  />,
  <Route key='listings' path='sales/listings' element={<Listings />} />,
  <Route
    key='listings-info'
    path='sales/listings/info'
    element={<ListingInfo />}
  />,
  <Route
    key='listingvarients-info'
    path='sales/listingvarients/info'
    element={<ListingVarientInfo />}
  />
]

export default SalesRoutes
