2023-03-23 11:32:09 +00:00
|
|
|
import { Box, useMediaQuery, useTheme } from "@mui/material";
|
2023-03-20 15:27:42 +00:00
|
|
|
import Chat from "./Chat";
|
2023-03-23 11:32:09 +00:00
|
|
|
import Collapse from "./Collapse";
|
2023-03-22 09:33:17 +00:00
|
|
|
import TicketList from "./TicketList";
|
2023-03-20 15:27:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
export default function Support() {
|
2023-03-23 11:32:09 +00:00
|
|
|
const theme = useTheme();
|
|
|
|
const upMd = useMediaQuery(theme.breakpoints.up("md"));
|
2023-03-20 15:27:42 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Box sx={{
|
|
|
|
display: "flex",
|
2023-03-23 11:32:09 +00:00
|
|
|
width: "100%",
|
|
|
|
flexDirection: upMd ? "row" : "column",
|
|
|
|
gap: "12px",
|
2023-03-20 15:27:42 +00:00
|
|
|
}}>
|
2023-03-23 11:32:09 +00:00
|
|
|
{!upMd &&
|
|
|
|
<Collapse headerText="Тикеты">
|
|
|
|
<TicketList />
|
|
|
|
</Collapse>
|
|
|
|
}
|
2023-03-20 15:27:42 +00:00
|
|
|
<Chat />
|
2023-03-23 11:32:09 +00:00
|
|
|
{upMd && <TicketList />}
|
2023-03-20 15:27:42 +00:00
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
}
|