@procraft/widget-order
Version:
Order widget for landing
17 lines • 856 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const colors_1 = require("../../constants/colors");
const styles_1 = require("./styles");
const Button = (props) => {
const { backgroundColor, textColor } = props;
return (react_1.default.createElement(styles_1.ButtonStyled, Object.assign({ style: {
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : colors_1.TITLE_BG_DEFAULT_COLOR,
color: textColor !== null && textColor !== void 0 ? textColor : colors_1.TITLE_BG_DEFAULT_COLOR,
} }, props)));
};
exports.default = Button;
//# sourceMappingURL=index.js.map