11import { FormattedMessage } from '@edx/frontend-platform/i18n' ;
2- import { Card , Icon , Stack } from '@openedx/paragon' ;
2+ import { Card , Stack } from '@openedx/paragon' ;
33import { LoadingSpinner } from '@src/generic/Loading' ;
4- import { getItemIcon } from '@src/generic/block-type-utils' ;
5- import { Widgets } from '@openedx/paragon/icons' ;
64import { useCourseDetails } from '@src/course-outline/data/apiHooks' ;
5+
76import messages from './messages' ;
7+ import { SummaryCard } from './SummaryCard' ;
88
99export const ReviewImportDetails = ( { courseId } : { courseId ?: string } ) => {
1010 const { data, isPending } = useCourseDetails ( courseId ) ;
@@ -31,45 +31,7 @@ export const ReviewImportDetails = ({ courseId }: { courseId?: string }) => {
3131 ) }
3232 </ Card >
3333 < h4 > < FormattedMessage { ...messages . importCourseAnalysisSummary } /> </ h4 >
34- < Card >
35- < Card . Section >
36- < Stack direction = "horizontal" >
37- < Stack className = "align-items-center" gap = { 2 } >
38- < FormattedMessage { ...messages . importCourseTotalBlocks } />
39- < LoadingSpinner />
40- </ Stack >
41- < div className = "border-light-400" style = { { borderLeft : '2px solid' , height : '50px' } } />
42- < Stack className = "align-items-center" gap = { 2 } >
43- < FormattedMessage { ...messages . importCourseSections } />
44- < Stack className = "justify-content-center" direction = "horizontal" gap = { 3 } >
45- < Icon src = { getItemIcon ( 'section' ) } />
46- < LoadingSpinner />
47- </ Stack >
48- </ Stack >
49- < Stack className = "align-items-center" gap = { 2 } >
50- < FormattedMessage { ...messages . importCourseSubsections } />
51- < Stack className = "justify-content-center" direction = "horizontal" gap = { 3 } >
52- < Icon src = { getItemIcon ( 'subsection' ) } />
53- < LoadingSpinner />
54- </ Stack >
55- </ Stack >
56- < Stack className = "align-items-center" gap = { 2 } >
57- < FormattedMessage { ...messages . importCourseUnits } />
58- < Stack className = "justify-content-center" direction = "horizontal" gap = { 3 } >
59- < Icon src = { getItemIcon ( 'unit' ) } />
60- < LoadingSpinner />
61- </ Stack >
62- </ Stack >
63- < Stack className = "align-items-center" gap = { 2 } >
64- < FormattedMessage { ...messages . importCourseComponents } />
65- < Stack className = "justify-content-center" direction = "horizontal" gap = { 3 } >
66- < Icon src = { Widgets } />
67- < LoadingSpinner />
68- </ Stack >
69- </ Stack >
70- </ Stack >
71- </ Card . Section >
72- </ Card >
34+ < SummaryCard />
7335 < h4 > < FormattedMessage { ...messages . importCourseDetailsTitle } /> </ h4 >
7436 < Card className = "p-6" >
7537 < Stack className = "align-items-center" gap = { 3 } >
0 commit comments