diff --git a/src/app/[locale]/keyword-cloud/components/ProgressIndicator.tsx b/src/app/[locale]/keyword-cloud/components/ProgressIndicator.tsx new file mode 100644 index 0000000..99cd1c7 --- /dev/null +++ b/src/app/[locale]/keyword-cloud/components/ProgressIndicator.tsx @@ -0,0 +1,44 @@ +'use client'; + +import React from 'react'; +import { cn } from '@/lib/utils'; + +interface ProgressIndicatorProps { + currentQuarter: string; + totalQuarters: number; + quarters: string[]; +} + +export function ProgressIndicator({ currentQuarter, totalQuarters, quarters }: ProgressIndicatorProps) { + const currentIndex = quarters.indexOf(currentQuarter); + + return ( +
+ {quarters.map((quarter, index) => { + const isCompleted = index <= currentIndex; + const isCurrent = index === currentIndex; + const isLast = index === quarters.length - 1; + + return ( +
+ ); + })} +
+ ); +}