import { useEffect, useMemo, useState } from "react" // @mui material components import Grid from "@mui/material/Grid" import Icon from "@mui/material/Icon" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" // ThreeD Garden examples components import DashboardLayout from "~/components/elements/LayoutContainers/DashboardLayout" import DashboardNavbar from "~/components/elements/Navbars/DashboardNavbar" import Footer from "~/components/elements/Footer" import MiniStatisticsCard from "~/components/elements/Cards/StatisticsCards/MiniStatisticsCard" import ProgressLineChart from "~/components/elements/Charts/LineCharts/ProgressLineChart" import DefaultInfoCard from "~/components/elements/Cards/InfoCards/DefaultInfoCard" import MasterCard from "~/components/elements/Cards/MasterCard" import MiniInfoCard from "~/components/elements/Cards/InfoCards/MiniInfoCard" import ControllerCard from "~/components/elements/Cards/ControllerCard" // import Calendar from "~/components/elements/Calendar" import CategoriesList from "~/components/elements/Lists/CategoriesList" // RTL page components import Steps from "~/pages/rtl/components/Steps" import FullBody from "~/pages/rtl/components/FullBody" import MediaPlayer from "~/pages/rtl/components/MediaPlayer" import OrdersOverview from "~/pages/rtl/components/OrdersOverview" import UpcomingEvents from "~/pages/rtl/components/UpcomingEvents" import Chart from "~/pages/rtl/components/Chart" // Data import progressLineChartData from "~/@fake-db/pages/rtl/data/progressLineChartData" import calendarEventsData from "~/@fake-db/pages/rtl/data/calendarEventsData" import categoriesListData from "~/@fake-db/pages/rtl/data/categoriesListData" import caloriesChartData from "~/@fake-db/pages/rtl/data/caloriesChartData" // ThreeD Garden contexts import { useMaterialUIController, setDirection } from "~/context" function RTL(): JSX.Element { const [, dispatch] = useMaterialUIController() const [lights, setLights] = useState(false) const handleSetLights = () => setLights(!lights) // Changing the direction to rtl useEffect(() => { setDirection(dispatch, "rtl") return () => setDirection(dispatch, "ltr") }, []) return ( lightbulb } title="درجة حرارة" onChange={handleSetLights} /> 754  م } description="مدينة نيويورك" /> {/* {useMemo( () => ( ), [calendarEventsData] )} */}