"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "ColGroupItem", {
    enumerable: true,
    get: function() {
        return ColGroupItem;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const ColGroupItem = (props)=>{
    const { col: item } = props;
    const ref = (0, _react.useRef)(null);
    const styles = (0, _react.useMemo)(()=>{
        const styles = {};
        if (item.width) {
            styles["width"] = `${item.width}px`;
        }
        return styles;
    }, [
        item
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("col", {
        ref: ref,
        // @ts-ignore
        className: item.className,
        align: item.align,
        style: styles
    });
};

//# sourceMappingURL=colgroupItem.js.map