UNPKG

1.29 kBJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/esm/extends";
2import * as React from 'react';
3import PropTypes from 'prop-types';
4import withStyles from '../styles/withStyles';
5import Typography from '../Typography';
6export const styles = {
7 /* Styles applied to the root element. */
8 root: {
9 marginBottom: 12
10 }
11};
12const DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentText(props, ref) {
13 return /*#__PURE__*/React.createElement(Typography, _extends({
14 component: "p",
15 variant: "body1",
16 color: "textSecondary",
17 ref: ref
18 }, props));
19});
20process.env.NODE_ENV !== "production" ? DialogContentText.propTypes = {
21 // ----------------------------- Warning --------------------------------
22 // | These PropTypes are generated from the TypeScript type definitions |
23 // | To update them edit the d.ts file and run "yarn proptypes" |
24 // ----------------------------------------------------------------------
25
26 /**
27 * The content of the component.
28 */
29 children: PropTypes.node,
30
31 /**
32 * Override or extend the styles applied to the component.
33 * See [CSS API](#css) below for more details.
34 */
35 classes: PropTypes.object
36} : void 0;
37export default withStyles(styles, {
38 name: 'MuiDialogContentText'
39})(DialogContentText);
\No newline at end of file