import { COMPONENT_VERSION_DETAILS_PATH } from '@routes/paths'; import { RouteErrorBoundry } from '@routes/RouteErrorBoundary'; import { RouterParams } from '@routes/utils'; import { ComponentVersionDetailsViewLayout, componentVersionDetailsViewLoader, } from '~/components/ComponentVersion'; import ComponentVersionDetailsTab from '~/components/ComponentVersion/tabs/ComponentVersionDetailsTab'; import { ActivityTabV2 } from '~/shared/components/activity-tab/ActivityTabV2'; const componentVersionRoutes = [ { path: COMPONENT_VERSION_DETAILS_PATH.path, errorElement: , loader: componentVersionDetailsViewLoader, element: , children: [ { index: true, element: , }, { path: `activity/:${RouterParams.activityTab}`, element: , }, { path: 'activity', element: , }, ], }, ]; export default componentVersionRoutes;