@e-group/material-module
Version:
EGroup Team react component modules.
28 lines (24 loc) • 836 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import { createStyles, withStyles } from '@material-ui/core';
import Icomoon from '@e-group/material/Icomoon';
import clsx from 'clsx';
const styles = theme => createStyles({
root: {
width: theme.spacing(3),
height: theme.spacing(3),
outline: 'none'
}
});
const DragIcon = (_ref) => {
let type = _ref.type,
className = _ref.className,
classes = _ref.classes,
other = _objectWithoutProperties(_ref, ["type", "className", "classes"]);
return /*#__PURE__*/React.createElement(Icomoon, _extends({
type: "move",
className: clsx(className, classes.root)
}, other));
};
export default withStyles(styles)(DragIcon);