diff --git a/src/Pages/Maintenance/CreateMaintenance/Components/ConfigRow/index.jsx b/src/Pages/Maintenance/CreateMaintenance/Components/ConfigRow/index.jsx new file mode 100644 index 000000000..93709ef1e --- /dev/null +++ b/src/Pages/Maintenance/CreateMaintenance/Components/ConfigRow/index.jsx @@ -0,0 +1,34 @@ +import { Box, Stack, Typography } from "@mui/material"; +import PropTypes from "prop-types"; +import { useTheme } from "@emotion/react"; +import ConfigBox from "../../../../../Components/ConfigBox"; + +const ConfigRow = ({ title, description, children }) => { + const theme = useTheme(); + + return ( + + + + {title} + + {description && ( + + {description} + + )} + + + {children} + + + ); +}; + +ConfigRow.propTypes = { + title: PropTypes.string.isRequired, + description: PropTypes.string, + children: PropTypes.node +}; + +export default ConfigRow; \ No newline at end of file diff --git a/src/Pages/Maintenance/CreateMaintenance/Components/MonitorsConfig/index.jsx b/src/Pages/Maintenance/CreateMaintenance/Components/MonitorsConfig/index.jsx new file mode 100644 index 000000000..f8955a873 --- /dev/null +++ b/src/Pages/Maintenance/CreateMaintenance/Components/MonitorsConfig/index.jsx @@ -0,0 +1,49 @@ +import PropTypes from "prop-types"; +import ConfigRow from "../ConfigRow"; +import Search from "../../../../../Components/Inputs/Search"; +import { useState } from "react"; + +const MonitorsConfig = ({ + monitors, + selectedMonitors, + error, + isEditMode, + onSelectMonitors, + secondaryLabelText, +}) => { + const [search, setSearch] = useState(""); + const handleSearch = (value) => { + setSearch(value); + }; + + return ( + + + + ); +}; + +MonitorsConfig.propTypes = { + monitors: PropTypes.array.isRequired, + selectedMonitors: PropTypes.array.isRequired, + error: PropTypes.string, + isEditMode: PropTypes.bool.isRequired, + onSelectMonitors: PropTypes.func.isRequired, + secondaryLabelText: PropTypes.string, +}; + +export default MonitorsConfig;