/*!
 * Copyright 2017 by ChartIQ, Inc.
 * All rights reserved.
 */
import * as React from "react";
/**
 * Button that is rendered on a dialog.
 */
export const FinsembleDialogButton = (props) => {
    // Default size is medium.
    var _a, _b;
    // [Julianna Langston, 2021-04-19] I don't think this is being used, since the css class `fsbl-button-md` doesn't exist anywhere. Candidate for removal, along with associated prop.
    const size = (_a = props.buttonSize) !== null && _a !== void 0 ? _a : "md"; // `fsbl-button-md` css doesn't exist anywhere?
    const classes = `fsbl-button fsbl-button-${size} ${(_b = props.className) !== null && _b !== void 0 ? _b : ""}`;
    return props.show !== false ? (React.createElement("div", { className: classes, onClick: props.onClick, role: "button", tabIndex: 0, onKeyDown: (e) => {
            var _a;
            if (e.key === "Enter") {
                (_a = props === null || props === void 0 ? void 0 : props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
            }
        } }, props.children)) : null;
};
//# sourceMappingURL=FinsembleDialogButton.js.map