/* Парус 8 - Панели мониторинга Компонент: Полноэкранный диалог */ //--------------------- //Подключение библиотек //--------------------- import React from "react"; //Классы React import PropTypes from "prop-types"; //Контроль свойств компонента import { Dialog, AppBar, Toolbar, IconButton, Typography, Icon, DialogContent, DialogTitle } from "@mui/material"; //Интерфейсные компоненты import { P8P_APP_BAR_VARIANT } from "../theme/variants/p8p_app_bar_variants"; //Варианты областей заголовка import { P8P_TYPOGRAPHY_VARIANT } from "../theme/p8p_typography"; //Варианты шрифтов import { P8P_COMPONENT_ZERO_PADDING } from "../theme/styles/common"; //Стили - общие import { P8P_TYPOGRAPHY_DIALOG_TITLE } from "../theme/styles/typography"; //Стили текста //----------- //Тело модуля //----------- //Полноэкранный диалог const P8PFullScreenDialog = ({ title, onClose, contentProps, children }) => { const handleClose = () => { onClose ? onClose() : null; }; return ( close {title} {children} ); }; //Контроль свойств - Полноэкранный диалог P8PFullScreenDialog.propTypes = { title: PropTypes.string.isRequired, onClose: PropTypes.func, children: PropTypes.element, contentProps: PropTypes.object }; //---------------- //Интерфейс модуля //---------------- export { P8PFullScreenDialog };