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.map((item) => (
{item.label} {item.value} {/* {item.label}: {item.value} */}
))}
); }