diff --git a/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx b/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx index 91ec47009..f039d7ad5 100644 --- a/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx +++ b/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx @@ -22,12 +22,16 @@ interface WaterDepthProps { onClose?: () => void; isPlaying: boolean; setIsPlaying: (isPlaying: boolean) => void; + totalSteps?: number; + currentStep?: number; } export function WaterDepth({ onClose, isPlaying, setIsPlaying, + totalSteps = 0, + currentStep = 0, }: WaterDepthProps) { useEffect(() => { @@ -38,10 +42,14 @@ export function WaterDepth({ setIsPlaying(!isPlaying); }; + // 진행률 계산 (0-100%) + const progressPercentage = totalSteps > 0 ? (currentStep / totalSteps) * 100 : 100; + + return ( <>