import LeftBar from "../../components/Modules/Home/LeftSide"; // 窑炉总览 - 左边 import BottomBar from "../../components/Modules/Home/Bottom"; // 窑炉总览 - 底部4个框 import RightBar from "../../components/Modules/Home/RightSide"; // 窑炉总览 - 右部 import CenterTopData from "../../components/Modules/Home/CenterTop"; // 泡界线监控(左上) + 当前生产线规格(右上角) import { AnimatePresence, motion } from "framer-motion"; // 动画 import KilnCenter from "../../components/Modules/KilnInner/Center"; // 窑炉内部 import KilnInnerLeft from "../../components/Modules/KilnInner/LeftSide"; // 窑炉内部左侧内容 import KilnInnerRight from "../../components/Modules/KilnInner/RightSide"; // 窑炉内部右侧内容 import OptimizeCenter from "../../components/Modules/KilnOptimize/Center"; // 窑炉优化 import KilnOptimizeLeft from "../../components/Modules/KilnOptimize/LeftSide"; // 窑炉优化左侧内容 import KilnOptimizeLeftForecast from "../../components/Modules/KilnOptimize/LeftSide/indexForecast"; // 窑炉优化左侧内容 import KilnOptimizeRight from "../../components/Modules/KilnOptimize/RightSide"; // 窑炉优化右侧内容 import KilnOptimizeRightForecast from "../../components/Modules/KilnOptimize/forecastRightSide"; // 窑炉优化右侧内容 import FireCheckLeft from "../../components/Modules/FireCheck/LeftSide"; // 退火监测 - 左边 import QualityCheckLeft from "../../components/Modules/QualityCheck/LeftSide"; // 质检统计 - 左边 import FireCheckRight from "../../components/Modules/FireCheck/RightSide";// 退火监测 - 右边 import QualityCheckRight from "../../components/Modules/QualityCheck/RightSide";// 质检统计 - 右边 import { useSelector } from "react-redux"; import { useEffect, useRef,useState,createContext } from "react"; import useRefresh from "../../hooks/useRefresh"; import TimeFireDir from "../../components/Common/TimeFireDir"; import WarnAlertList from "../../components/Common/WarnAlert/ListContainer"; export const HomeContext = createContext(); export default function Home({ active }) { useRefresh(true); const videoUp = useRef(null); const videoDown = useRef(null); const [floor, setFloor] = useState(null); const handleFloorChangeFromKilnCenter = (newFloor) => { console.log(newFloor) setFloor(newFloor); }; const [modelFlag, setModelFlag] = useState(false); const handleValueFromGrandChild = (value) => { setModelFlag(value); console.log(modelFlag); }; const ctx = useSelector((state) => state.fireInfo); const fireDir = ctx.fireDirection || null; useEffect(() => { if (fireDir == "东火" && videoUp.current) { videoUp.current.playbackRate = 0.3; } else { videoDown.current && (videoDown.current.playbackRate = 0.3); } }, [fireDir]); return (