var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    }
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import React from 'react';
import chroma from 'chroma-js';
import styled from 'react-emotion';
import { colors } from '../base-styles';
var fill = colors.blue;
var stroke = chroma(colors.blue).darken(0.5);
var Path = styled.path(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  cursor: grab;\n"], ["\n  cursor: grab;\n"])));
var BooleanShape = /** @class */ (function (_super) {
    __extends(BooleanShape, _super);
    function BooleanShape() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    BooleanShape.getHeight = function () {
        return 40;
    };
    BooleanShape.prototype.render = function () {
        var _a = this.props, _b = _a.width, width = _b === void 0 ? 0 : _b, isPlaceholder = _a.isPlaceholder;
        var path = "\n      m 20,0\n      H " + Math.max(width, 40) + "\n      l 20 20\n      l -20 20\n      H 20\n      l -20 -20\n      l 20 -20\n      z\n    ";
        return (React.createElement(Path, { fill: isPlaceholder ? 'white' : fill, stroke: stroke, d: path }));
    };
    return BooleanShape;
}(React.Component));
export default BooleanShape;
var templateObject_1;
//# sourceMappingURL=BooleanShape.js.map