UNPKG

@metadaoproject/wallet-adapter-react-ui

Version:
59 lines 3.47 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.WalletInfoContent = void 0; const react_1 = __importStar(require("react")); const Walletillustration_1 = require("./Walletillustration"); const steps = [ { title: 'What is a Wallet?', content: 'Wallets let you store, receive, send, and interact with digital assets like NFTs and tokens within web apps.', }, { title: 'Security & Ease of Use.', content: 'With blockchain apps, your wallet is used as a secure and easy way to login and interact with web applications.', }, { title: 'Decentralized & Permissionless.', content: 'An essential utility for permissionless blockchain usage. Wallets let you explore and participate in the new web.', }, ]; const WalletInfoContent = () => { const [currentStep, setCurrentStep] = (0, react_1.useState)(0); const goToStep = (step) => { setCurrentStep(step); }; return (react_1.default.createElement("div", { className: "wallet-adapter-modal-info-content" }, react_1.default.createElement("h1", { className: "wallet-adapter-modal-info-title" }, "About Wallets"), react_1.default.createElement(Walletillustration_1.WalletIllustration, { className: "wallet-info-illustration", circleColors: ['#123456', '#789ABC', '#DEF012', '#345678'], currentStep: currentStep }), react_1.default.createElement("div", { className: "wallet-info-slider" }, steps.map((step, index) => (react_1.default.createElement("div", { key: index, className: `wallet-info-step ${index === currentStep ? 'active' : ''}` }, react_1.default.createElement("h2", { className: "wallet-info-step-title" }, step.title), react_1.default.createElement("p", { className: "wallet-info-step-content" }, step.content))))), react_1.default.createElement("div", { className: "wallet-info-navigation-container" }, react_1.default.createElement("div", { className: "wallet-info-separator" }), react_1.default.createElement("div", { className: "wallet-info-navigation" }, steps.map((_, index) => (react_1.default.createElement("button", { key: index, className: `step-indicator ${index === currentStep ? 'active' : ''}`, onClick: () => goToStep(index), "aria-label": `Go to step ${index + 1}` }))))))); }; exports.WalletInfoContent = WalletInfoContent; //# sourceMappingURL=WalletInfoModal.js.map