import { layout } from './layout.js'; export function renderPaymentWallets(data) { const walletRows = Object.entries(data.wallets).map(([type, addr]) => ` ${type} ${escapeHtml(addr || 'Not set')} ` ).join(''); const content = `

Commission Status

Commission: ${data.commissionEnabled ? 'ON' : 'OFF'}

Percentage: ${data.commissionPercent}%

Commission Wallet Addresses

These are the shop's payment wallets. Edit them in the .env file.

${walletRows}
CurrencyAddress
`; return layout('Payment Wallets', content, 'payment-wallets'); } function escapeHtml(str) { return String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); }