diff --git a/src/components/insight/DropOffAnalysisSection.tsx b/src/components/insight/DropOffAnalysisSection.tsx index 8da63e1d..addc4ff3 100644 --- a/src/components/insight/DropOffAnalysisSection.tsx +++ b/src/components/insight/DropOffAnalysisSection.tsx @@ -1,4 +1,4 @@ -import type { DropOffSlide, DropOffTime } from '@/types/insight'; +import type { DropOffSlide, DropOffTime } from '@/types/insight'; import SlideThumb from './SlideThumb'; @@ -16,13 +16,20 @@ export default function DropOffAnalysisSection({ showVideoDropOff = true, }: DropOffAnalysisSectionProps) { const isSlideOnly = !showVideoDropOff; // !hasVideo 일때 + const noDataMessage = '데이터를 분석 중이거나 결과가 없습니다.'; + const hasSlideDropOff = dropOffSlides.some((item) => item.count > 0); + const hasVideoDropOff = dropOffTimes.some((item) => item.count > 0); return (
{noDataMessage}
+{noDataMessage}
+ 영상을 녹화하면 더 자세한 분석을 받을 수 있어요 +
+데이터를 분석 중이거나 결과가 없습니다.
++ {hasVideo ? `재생 시간: ${label}` : `${data.tooltipTitle}`} +
+잔존율 {data.value}%
+ ({data.sessionCount}명) +- {hasVideo ? `재생 시간: ${label}` : `슬라이드: ${data.tooltipTitle}`} -
-잔존율 {data.value}%
- ({data.sessionCount}명) -데이터를 분석 중이거나 결과가 없습니다.
-발표 자료 분석 결과를 확인하세요
- 영상을 녹화하면 더 자세한 분석을 받을 수 있어요 -
-