"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SiginGuardButton", {
    enumerable: true,
    get: function() {
        return SiginGuardButton;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _hooks = require("@orderly.network/hooks");
const _types = require("@orderly.network/types");
const _ = /*#__PURE__*/ _interop_require_default(require("."));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const SiginGuardButton = (props)=>{
    const { state } = (0, _hooks.useAccount)();
    // const connected = false;
    if (state.status === _types.AccountStatusEnum.NotSignedIn) {
        if (typeof props.placeholder === "undefined") {
            return /*#__PURE__*/ (0, _jsxruntime.jsx)(_.default, {
                fullWidth: true,
                onClick: ()=>{},
                type: "button",
                children: "Connect wallet"
            });
        }
        return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
            children: props.placeholder
        });
    }
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
        children: props.children
    });
};

//# sourceMappingURL=siginGuardButton.js.map