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 clsx from 'clsx';
|
6 | import { withStyles } from '@material-ui/core/styles';
|
7 | export const styles = theme => ({
|
8 |
|
9 | root: {
|
10 | width: 2,
|
11 | backgroundColor: theme.palette.grey[400],
|
12 | flexGrow: 1
|
13 | }
|
14 | });
|
15 | const TimelineConnector = React.forwardRef(function TimelineConnector(props, ref) {
|
16 | const {
|
17 | classes,
|
18 | className
|
19 | } = props,
|
20 | other = _objectWithoutPropertiesLoose(props, ["classes", "className"]);
|
21 |
|
22 | return React.createElement("span", _extends({
|
23 | className: clsx(classes.root, className),
|
24 | ref: ref
|
25 | }, other));
|
26 | });
|
27 | process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes = {
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | |
34 |
|
35 |
|
36 | children: PropTypes.node,
|
37 |
|
38 | |
39 |
|
40 |
|
41 |
|
42 | classes: PropTypes.object,
|
43 |
|
44 | |
45 |
|
46 |
|
47 | className: PropTypes.string
|
48 | } : void 0;
|
49 | export default withStyles(styles, {
|
50 | name: 'MuiTimelineConnector'
|
51 | })(TimelineConnector); |
\ | No newline at end of file |