diff --git a/src/components/Features-carousel/index.js b/src/components/Features-carousel/index.js index 3cdcf47b27d63..113be52a4410f 100644 --- a/src/components/Features-carousel/index.js +++ b/src/components/Features-carousel/index.js @@ -1,56 +1,10 @@ -import React, { useState } from "react"; -import SimpleReactLightbox, { SRLWrapper } from "simple-react-lightbox"; -import { Link } from "gatsby"; -import { IoIosArrowRoundForward } from "@react-icons/all-files/io/IoIosArrowRoundForward"; -import { FeaturesWrapper } from "./FeaturesCarousel.style"; -import Slider from "react-slick"; - - -const Features = ({ features, heading }) => ( - <> - {/* carousel rendered at smaller breakpoints */} - - - > -); - - -const FeaturesList = ({ features }) => { - const [activeFeature, setActiveFeature] = useState(0); - return ( - - - - {features.map((feature, stableIdx) => ( - - {feature.description} - - ))} - - - - - {features[activeFeature].content} - - - - - - ); -}; - const FeaturesCarousel = ({ features, heading }) => { return ( - {heading ? heading : "Features"} + + {heading ? heading : "Features"} + { ); }; - -const Feature = ({ children, title, active, onClick, learnMoreLink, id, Element = "li" }) => { - return ( - - {onClick ? ( - onClick(id)} - aria-expanded={active} - aria-controls={`feature-${id}`} - > - {title} - - ) : ( - {title} - )} - - {children} - {learnMoreLink && learnMoreLink.startsWith("/") - ? - Explore - - : - Explore - - } - - - ); -}; - -export default Features;
{children}