import createArrowPosition from './create';
var ArrowTopRightPosition = function (_a) {
    var cushion = _a.cushion, relativeRect = _a.relativeRect, contentRect = _a.contentRect;
    var right = relativeRect.right, left = relativeRect.left, top = relativeRect.top;
    var middle = (left + right) / 2;
    var x = middle - (contentRect.width - 15);
    var y = top - contentRect.height - cushion;
    return createArrowPosition(x, y, "top-right");
};
export default ArrowTopRightPosition;
