anycoder-4d1c0cbc / components /ProgressTracker.js
LukeDunsMoto's picture
Upload components/ProgressTracker.js with huggingface_hub
2a2cc88 verified
Raw
History Blame Contribute Delete
892 Bytes
import { Bookmark } from 'lucide-react'
export default function ProgressTracker({ totalPages, currentPage, bookmarks }) {
const progress = ((currentPage + 1) / totalPages) * 100
return (
<div className="mb-8">
<div className="flex items-center justify-between mb-2">
<span className="text-sm font-medium text-gray-700">
Page {currentPage + 1} of {totalPages}
</span>
<div className="flex items-center space-x-1">
<Bookmark className="h-4 w-4 text-yellow-500" />
<span className="text-sm text-gray-600">{bookmarks.size} bookmarks</span>
</div>
<div className="w-full bg-gray-200 rounded-full h-2">
<div
className="bg-blue-600 h-2 rounded-full transition-all duration-300"
style={{ width: `${progress}%` }}
/>
</div>
</div>
</div>
)
}