import React from 'react' interface ReadingProgressIndicatorProps { progress: number // 0 to 100 isComplete?: boolean showPercentage?: boolean className?: string isSidebarCollapsed?: boolean isHighlightsCollapsed?: boolean } export const ReadingProgressIndicator: React.FC = ({ progress, isComplete = false, showPercentage = true, className = '', isSidebarCollapsed = false, isHighlightsCollapsed = false }) => { const clampedProgress = Math.min(100, Math.max(0, progress)) // Calculate left and right offsets based on sidebar states (desktop only) const leftOffset = isSidebarCollapsed ? 'var(--sidebar-collapsed-width)' : 'var(--sidebar-width)' const rightOffset = isHighlightsCollapsed ? 'var(--highlights-collapsed-width)' : 'var(--highlights-width)' return (
{showPercentage && (
{isComplete ? '✓' : `${clampedProgress}%`}
)}
) }