@carbon/react
Version:
React components for the Carbon Design System
45 lines (41 loc) • 1.62 kB
JavaScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import SkeletonText from '../SkeletonText/SkeletonText.js';
import { usePrefix } from '../../internal/usePrefix.js';
var _SkeletonText, _SkeletonText2, _SkeletonText3, _SkeletonText4;
function PaginationSkeleton({
className,
...rest
}) {
const prefix = usePrefix();
return /*#__PURE__*/React.createElement("div", _extends({
className: cx(`${prefix}--pagination`, `${prefix}--skeleton`, className)
}, rest), /*#__PURE__*/React.createElement("div", {
className: `${prefix}--pagination__left`
}, _SkeletonText || (_SkeletonText = /*#__PURE__*/React.createElement(SkeletonText, {
width: "70px"
})), _SkeletonText2 || (_SkeletonText2 = /*#__PURE__*/React.createElement(SkeletonText, {
width: "35px"
})), _SkeletonText3 || (_SkeletonText3 = /*#__PURE__*/React.createElement(SkeletonText, {
width: "105px"
}))), /*#__PURE__*/React.createElement("div", {
className: `${prefix}--pagination__right ${prefix}--pagination--inline`
}, _SkeletonText4 || (_SkeletonText4 = /*#__PURE__*/React.createElement(SkeletonText, {
width: "70px"
}))));
}
PaginationSkeleton.propTypes = {
/**
* Specify an optional className to add.
*/
className: PropTypes.string
};
export { PaginationSkeleton, PaginationSkeleton as default };