import React from 'react';
import { st, classes } from './SkeletonCircle.st.css.js';
import { DEFAULT_DIAMETER } from './SkeletonCircle.constants';
import { DEFAULT_SKIN } from '../SkeletonGroup/SkeletonGroup.constants';
import Box from '../Box';
import { SkeletonGroupContext } from '../SkeletonGroup';
/** SkeletonCircle */
function SkeletonCircle({ dataHook, className, diameter = DEFAULT_DIAMETER, margin, marginLeft, marginRight, marginTop, marginBottom, }) {
    return (React.createElement(SkeletonGroupContext.Consumer, null, context => {
        const skin = context?.skin || DEFAULT_SKIN;
        return (React.createElement("div", { "data-hook": dataHook, className: className, "data-diameter": diameter, "data-skin": skin },
            React.createElement(Box, { width: diameter, height: diameter, margin: margin, marginLeft: marginLeft, marginRight: marginRight, marginTop: marginTop, marginBottom: marginBottom, className: st(classes.root, { skin }) })));
    }));
}
SkeletonCircle.displayName = 'SkeletonCircle';
export default SkeletonCircle;
//# sourceMappingURL=SkeletonCircle.js.map