UNPKG

@wulperstudio/cms

Version:
44 lines 1.42 kB
import React from 'react'; import { Grid, Stack, Typography, useTheme } from '@mui/material'; import { InputTrueFalse } from '../InputTrueFalse'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; var OutputNotificacion = function OutputNotificacion(props) { var theme = useTheme(); var handleChange = function handleChange(value) { if (props.onChange) props.onChange(value); }; return /*#__PURE__*/_jsxs(Grid, { container: true, justifyContent: "space-between", alignContent: "start", children: [/*#__PURE__*/_jsx(Grid, { item: true, children: /*#__PURE__*/_jsxs(Stack, { alignItems: "flex-start", children: [!props.hideTitle && /*#__PURE__*/_jsx(Typography, { fontSize: "14px", color: theme.palette.text.primary, fontWeight: 600, children: props.title }), /*#__PURE__*/_jsx(Typography, { fontSize: "14px", color: theme.palette.text.secondary, fontWeight: 400, children: props.description })] }) }), /*#__PURE__*/_jsx(Grid, { item: true, children: /*#__PURE__*/_jsx(InputTrueFalse, { switchProps: { checked: props.value, onChange: function onChange(_e, checked) { return handleChange(checked); } }, label: "" }) })] }); }; export default OutputNotificacion;