import { Box, Paper, useMediaQuery, useTheme } from "@mui/material"; import { PieChart } from "@mui/x-charts"; import type { DevicesResponse } from "@api/statistic"; type DevicesProps = { devices: DevicesResponse; }; type DeviceProps = { title: string; devices: Record; }; const Device = ({ title, devices }: DeviceProps) => { return ( ({ id, value, })), innerRadius: 50, }, ]} /> ); }; export const Devices = ({ devices }: DevicesProps) => { const theme = useTheme(); const isTablet = useMediaQuery(theme.breakpoints.down(1000)); const isMobile = useMediaQuery(theme.breakpoints.down(600)); return ( ); };