11import * as React from 'react' ;
2- import { Suspense } from 'react' ;
3- import Breadcrumbs from "@/components/Breadcrumbs/Breadcrumbs" ;
4- import SectionCaption from "@/components/SectionCaption/SectionCaption" ;
5- import MappingServiceStats from "@/app/mapping/components/Dashboard/MappingServiceStats" ;
6- import MappingServiceStatsSkeleton from "@/app/mapping/components/Dashboard/MappingServiceStatsSkeleton" ;
72import { getServerSession , Session } from "next-auth" ;
83import { authOptions } from "@/pages/api/auth/[...nextauth]" ;
94import { OverviewPage } from "@/components/OverviewPage/OverviewPage" ;
10- import RepositoryStats from "@/app/base-repo/components/Dashboard/RepositoryStats" ;
11- import RepositoryStatsSkeleton from "@/app/base-repo/components/Dashboard/RepositoryStatsSkeleton" ;
12- import LatestActivities from "@/app/base-repo/components/Dashboard/LatestActivities" ;
13- import LatestActivitiesSkeleton from "@/app/base-repo/components/Dashboard/LatestActivitiesSkeleton" ;
5+ import MappingServiceStats from "@/app/mapping/components/Dashboard/MappingServiceStats" ;
6+ import MappingServiceStatsSkeleton from "@/app/mapping/components/Dashboard/MappingServiceStatsSkeleton" ;
7+ import { ActionCardProps } from "@/components/OverviewPage/ActionCard" ;
148
159export default async function Page ( ) {
16- const basePath : string = ( ( withBasePath && process . env . NEXT_PUBLIC_BASE_PATH ) ? process . env . NEXT_PUBLIC_BASE_PATH : "" ) ;
10+ const basePath : string = ( process . env . NEXT_PUBLIC_BASE_PATH ) ? process . env . NEXT_PUBLIC_BASE_PATH : "" ;
1711 let session :Session | undefined = await getServerSession ( authOptions ) as Session ;
1812
19- const actions = [
13+ let actions : ActionCardProps [ ] = [
2014 {
21- icon : "add" ,
22- title : "Create Mapping" ,
23- subtitle : "Start a new mapping" ,
24- href : `${ basePath } /mapping/map` ,
25- requiresAuth : true ,
26- }
15+ icon : "add" ,
16+ title : "Create Mapping" ,
17+ subtitle : "Start a new mapping" ,
18+ href : `${ basePath } /mapping/map` ,
19+ requiresAuth : true
20+ }
2721 ] ;
2822
2923 const availableActions = actions . filter ( action => {
@@ -36,8 +30,8 @@ export default async function Page() {
3630 breadcrumbs = { [
3731 { label : "Overview" , href : '/mapping' , active : true }
3832 ] }
39- stats = { < RepositoryStats /> }
40- statsFallback = { < RepositoryStatsSkeleton /> }
33+ stats = { < MappingServiceStats /> }
34+ statsFallback = { < MappingServiceStatsSkeleton /> }
4135 actions = { availableActions }
4236 />
4337 ) ;
0 commit comments