1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import * as React from 'react';
|
4 | import PropTypes from 'prop-types';
|
5 | import { withStyles } from '@material-ui/core/styles';
|
6 | import { Typography } from '@material-ui/core';
|
7 | import clsx from 'clsx';
|
8 | export const styles = theme => ({
|
9 |
|
10 | root: {
|
11 | fontWeight: theme.typography.fontWeightMedium,
|
12 | marginTop: -2
|
13 | }
|
14 | });
|
15 | const AlertTitle = React.forwardRef(function AlertTitle(props, ref) {
|
16 | const {
|
17 | classes,
|
18 | className
|
19 | } = props,
|
20 | other = _objectWithoutPropertiesLoose(props, ["classes", "className"]);
|
21 |
|
22 | return React.createElement(Typography, _extends({
|
23 | gutterBottom: true,
|
24 | component: "div",
|
25 | ref: ref,
|
26 | className: clsx(classes.root, className)
|
27 | }, other));
|
28 | });
|
29 | process.env.NODE_ENV !== "production" ? AlertTitle.propTypes = {
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | |
36 |
|
37 |
|
38 | children: PropTypes.node,
|
39 |
|
40 | |
41 |
|
42 |
|
43 |
|
44 | classes: PropTypes.object,
|
45 |
|
46 | |
47 |
|
48 |
|
49 | className: PropTypes.string
|
50 | } : void 0;
|
51 | export default withStyles(styles, {
|
52 | name: 'MuiAlertTitle'
|
53 | })(AlertTitle); |
\ | No newline at end of file |