import { prefix } from './prefix';
export var BottomCenter = function (_a) {
    var contentRect = _a.contentRect, relativeRect = _a.relativeRect, cushion = _a.cushion;
    var left = relativeRect.left, right = relativeRect.right, bottom = relativeRect.bottom;
    var middle = (left + right) / 2;
    var x = middle - contentRect.width / 2;
    var y = bottom + cushion;
    return {
        style: {
            position: 'absolute',
            left: x,
            top: y,
        },
        className: prefix('position-bottom-center'),
    };
};
