/* * @Author: zhp * @Date: 2024-08-20 14:08:32 * @LastEditTime: 2024-08-30 09:50:51 * @LastEditors: zhp * @Description: */ import cls from "./kiln.module.scss"; import Container from "../../Container"; import { useSelector } from "react-redux"; import { stateNameMap } from "../../../store/features/kilnSlice"; export default function Kiln() { const kilnInfo = useSelector((state) => state.kiln); const infos = Object.keys(kilnInfo).map((key) => ({ label: stateNameMap[key], value: kilnInfo[key], })); return (
{infos.slice(0,infos.length-1).map((item) => (
{item.label} {item.value} {/* {item.label}: {item.value} */}
))}
); }