"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UIButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
const StyledButton_1 = require("./StyledButton");
const UIStyleConstants_1 = require("@appglue/common/dist/Common/UIStyleConstants");
const UIButton = ({ variant, size, disabled, onClick, startIcon, children, padding, paddingBottom, paddingLeft, paddingRight, paddingTop, }) => {
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(variant === "contained" || variant === "dark" || !variant) && ((0, jsx_runtime_1.jsx)(StyledButton_1.StyledButton, { color: "primary", variant: "contained", size: size ?? "medium", disabled: disabled, onClick: onClick, startIcon: startIcon, style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, children: children })), variant === "text" && ((0, jsx_runtime_1.jsx)(StyledButton_1.StyledButton, { startIcon: startIcon, variant: "text", size: size ?? "medium", disabled: disabled, onClick: onClick, style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, children: children })), variant === "outlined" && ((0, jsx_runtime_1.jsx)(StyledButton_1.StyledButton, { startIcon: startIcon, variant: "outlined", size: size ?? "medium", disabled: disabled, onClick: onClick, style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, children: children })), variant === "light" && ((0, jsx_runtime_1.jsx)(StyledButton_1.StyledButton, { startIcon: startIcon, variant: "contained", size: size ?? "medium", disabled: disabled, onClick: onClick, style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                    background: UIStyleConstants_1.UIStyleConstants.GRAY_LIGHT_COLOR,
                    color: UIStyleConstants_1.UIStyleConstants.BLUE_COLOR,
                }, children: children })), variant === "link" && ((0, jsx_runtime_1.jsx)(material_1.Link, { style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, underline: "none", onClick: disabled ? undefined : onClick, children: children })), variant === "link_underlined" && ((0, jsx_runtime_1.jsx)(material_1.Link, { style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, underline: "always", onClick: disabled ? undefined : onClick, children: children })), variant === "link_underlined_hover" && ((0, jsx_runtime_1.jsx)(material_1.Link, { style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, underline: "hover", onClick: disabled ? undefined : onClick, children: children })), variant === "icon" && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { style: {
                    padding: padding,
                    paddingLeft: paddingLeft,
                    paddingRight: paddingRight,
                    paddingBottom: paddingBottom,
                    paddingTop: paddingTop,
                }, size: size ?? "medium", disabled: disabled, onClick: onClick, children: children }))] }));
};
exports.UIButton = UIButton;
//# sourceMappingURL=UIButton.js.map