UNPKG

@wulperstudio/cms

Version:
51 lines (50 loc) 1.83 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _material = require("@mui/material"); var _InputTrueFalse = require("../InputTrueFalse"); var _jsxRuntime = require("react/jsx-runtime"); var OutputNotificacion = function OutputNotificacion(props) { var theme = (0, _material.useTheme)(); var handleChange = function handleChange(value) { if (props.onChange) props.onChange(value); }; return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Grid, { container: true, justifyContent: "space-between", alignContent: "start", children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, { item: true, children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Stack, { alignItems: "flex-start", children: [!props.hideTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, { fontSize: "14px", color: theme.palette.text.primary, fontWeight: 600, children: props.title }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, { fontSize: "14px", color: theme.palette.text.secondary, fontWeight: 400, children: props.description })] }) }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, { item: true, children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputTrueFalse.InputTrueFalse, { switchProps: { checked: props.value, onChange: function onChange(_e, checked) { return handleChange(checked); } }, label: "" }) })] }); }; var _default = exports["default"] = OutputNotificacion;