@reservoir0x/relay-kit-ui
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
34 lines • 1.67 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const ReservoirText_js_1 = tslib_1.__importDefault(require("../../img/ReservoirText.js"));
const index_js_1 = require("../primitives/index.js");
const RelayKitProvider_js_1 = require("../../providers/RelayKitProvider.js");
const WidgetFooter = () => {
const providerOptionsContext = (0, react_1.useContext)(RelayKitProvider_js_1.ProviderOptionsContext);
if (providerOptionsContext.disablePoweredByReservoir) {
return null;
}
return ((0, jsx_runtime_1.jsx)(index_js_1.Flex, { align: "center", css: {
mx: 'auto',
alignItems: 'center',
justifyContent: 'center',
pt: 12
}, children: (0, jsx_runtime_1.jsxs)(index_js_1.Text, { style: "subtitle3", color: "subtle", css: {
display: 'inline-flex',
alignItems: 'center',
gap: 1,
lineHeight: '12px',
fontWeight: 400,
color: 'text-subtle'
}, children: ["Powered by", ' ', (0, jsx_runtime_1.jsx)(index_js_1.Anchor, { href: "https://reservoir.tools/", target: "_blank", weight: "heavy", color: "gray", css: {
height: 12,
fontSize: 14,
fill: 'gray11',
_hover: { fill: 'gray12' }
}, children: (0, jsx_runtime_1.jsx)(ReservoirText_js_1.default, {}) })] }) }));
};
exports.default = WidgetFooter;
//# sourceMappingURL=WidgetFooter.js.map