(id: number)
| 11 | const currentFeature = featuresData.find((feature) => feature.id === activeFeature); |
| 12 | |
| 13 | const handleFeatureClick = (id: number) => { |
| 14 | if (id === activeFeature) return; |
| 15 | setProgress(0); |
| 16 | setActiveFeature(id); |
| 17 | }; |
| 18 | |
| 19 | useEffect(() => { |
| 20 | const duration = currentFeature?.duration || 5000; |