Files
goTorrent/goTorrentWebUI/node_modules/material-ui/List/ListItemSecondaryAction.js.flow

43 lines
1006 B
Plaintext

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = theme => ({
root: {
position: 'absolute',
right: 4,
top: '50%',
marginTop: -theme.spacing.unit * 3,
},
});
function ListItemSecondaryAction(props) {
const { children, classes, className, ...other } = props;
return (
<div className={classNames(classes.root, className)} {...other}>
{children}
</div>
);
}
ListItemSecondaryAction.propTypes = {
/**
* The content of the component, normally an `IconButton` or selection control.
*/
children: PropTypes.node,
/**
* Useful to extend the style applied to components.
*/
classes: PropTypes.object.isRequired,
/**
* @ignore
*/
className: PropTypes.string,
};
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
export default withStyles(styles, { name: 'MuiListItemSecondaryAction' })(ListItemSecondaryAction);