import React from 'react' ; import { Route , Switch } from 'react-router-dom' ; import { SYNC_FREQUENCY_PATH , BLOCKED_TIME_WINDOWS_PATH , OBJECTS_AND_ASSETS_PATH , SOURCE_SYNCHRONIZATION_PATH , getSourcesPath , } from '../../../../routes' ; import { Frequency } from './frequency' ; import { ObjectsAndAssets } from './objects_and_assets' ; import { Synchronization } from './synchronization' ; export const SynchronizationRouter = ( ) => ( < Switch > < Route exact path = { getSourcesPath ( SOURCE_SYNCHRONIZATION_PATH , true ) } > < Synchronization /> < /Route> < Route exact path = { getSourcesPath ( SYNC_FREQUENCY_PATH , true ) } > < Frequency tabId = { 0 } /> < /Route> < Route exact path = { getSourcesPath ( BLOCKED_TIME_WINDOWS_PATH , true ) } > < Frequency tabId = { 1 } /> < /Route> < Route exact path = { getSourcesPath ( OBJECTS_AND_ASSETS_PATH , true ) } > < ObjectsAndAssets /> < /Route> < /Switch>);