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