import TitleBox from "../Component/TitleBox"; import SwitchButton from "../Component/SwitchButton"; import BarChart from "./BarChart"; import { useState } from "react"; function LeftDown() { const nameList = [{ name: "表单" }, { name: "柱状" }]; const [activeName, setActiveName] = useState(nameList[0].name); return (
当天
{activeName === "表单" ? "表单" : }
本周
{activeName === "表单" ? "表单" : }
本月
{activeName === "表单" ? "表单" : }
); } export default LeftDown;