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