import { useEffect, useState } from "react"; import { Box, IconButton, Typography, useMediaQuery, useTheme } from "@mui/material"; import ArrowBackIcon from "@mui/icons-material/ArrowBack"; import SectionWrapper from "@root/components/SectionWrapper"; import { Select } from "@root/components/Select"; import { Tabs } from "@root/components/Tabs"; import AccordionWrapper from "./AccordionWrapper"; import { HISTORY } from "./historyMocks"; import { useHistoryTracker } from "@root/utils/hooks/useHistoryTracker"; import { useHistoryData } from "@root/utils/hooks/useHistoryData"; const subPages = ["Платежи", "Покупки тарифов", "Окончания тарифов"]; export default function History() { const [selectedItem, setSelectedItem] = useState(0); const theme = useTheme(); const upMd = useMediaQuery(theme.breakpoints.up("md")); const isMobile = useMediaQuery(theme.breakpoints.down(600)); const isTablet = useMediaQuery(theme.breakpoints.down(1000)); const { historyData, error } = useHistoryData(); const handleCustomBackNavigation = useHistoryTracker(); if (!error && historyData) { console.log(historyData?.records[0].rawDetails[0].map(({ Key, Value }) => (Key == "id" ? console.log(Value) : ""))); } return ( {isMobile && ( )} История {isMobile ? (