@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
38 lines (34 loc) • 859 B
JavaScript
/**
* MSKCC 2021, 2024
*/
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import PropTypes from 'prop-types';
import React__default from 'react';
import cx from 'classnames';
import { usePrefix } from '../../internal/usePrefix.js';
const SkeletonIcon = _ref => {
let {
className,
...other
} = _ref;
const prefix = usePrefix();
const skeletonIconClasses = cx({
[`${prefix}--icon--skeleton`]: true,
[className]: className
});
return /*#__PURE__*/React__default.createElement("div", _extends({
className: skeletonIconClasses
}, other));
};
SkeletonIcon.propTypes = {
/**
* Specify an optional className to add.
*/
className: PropTypes.string,
/**
* The CSS styles.
*/
style: PropTypes.object
};
var SkeletonIcon$1 = SkeletonIcon;
export { SkeletonIcon$1 as default };