MCPcopy Create free account
hub / github.com/chiragksharma/BuildFast / handleFeatureClick

Function handleFeatureClick

src/components/FeatureCarousel.tsx:13–17  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

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;

Callers 1

FeaturesCarouselFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected