import cls from "./index.module.css"; import GradientText from "../../../Common/GradientText"; import { useSelector } from "react-redux"; import { useEffect, useState } from "react"; import eIcon1 from "../../../../assets/Icon/dontknowwhatitis.png"; import eIcon2 from "../../../../assets/Icon/lightnen.png"; function Energy(props) { const [isPage1] = useState(props.page === 1); const energyInfo = useSelector((state) => state.energy?.info); // useEffect(() => { // const timer = setInterval(() => { // setIsPage1((pre) => !pre); // }, 10000); // return () => { // clearInterval(timer); // } // }, []); return (