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 '../styles/withStyles';
|
7 | export const styles = {
|
8 |
|
9 | root: {
|
10 | position: 'absolute',
|
11 | right: 16,
|
12 | top: '50%',
|
13 | transform: 'translateY(-50%)'
|
14 | }
|
15 | };
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | const ListItemSecondaryAction = React.forwardRef(function ListItemSecondaryAction(props, ref) {
|
21 | const {
|
22 | classes,
|
23 | className
|
24 | } = props,
|
25 | other = _objectWithoutPropertiesLoose(props, ["classes", "className"]);
|
26 |
|
27 | return React.createElement("div", _extends({
|
28 | className: clsx(classes.root, className),
|
29 | ref: ref
|
30 | }, other));
|
31 | });
|
32 | process.env.NODE_ENV !== "production" ? ListItemSecondaryAction.propTypes = {
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | |
39 |
|
40 |
|
41 | children: PropTypes.node,
|
42 |
|
43 | |
44 |
|
45 |
|
46 |
|
47 | classes: PropTypes.object,
|
48 |
|
49 | |
50 |
|
51 |
|
52 | className: PropTypes.string
|
53 | } : void 0;
|
54 | ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
|
55 | export default withStyles(styles, {
|
56 | name: 'MuiListItemSecondaryAction'
|
57 | })(ListItemSecondaryAction); |
\ | No newline at end of file |