// BankLogos.jsx — Original SVG marks for Chilean banks + Apple Pay. // Hand-built generic financial glyphs (NOT trademarked logos) using each // brand's known color so they read correctly without copying their actual logo. function BankLogo({ name, w = 120 }) { const brands = { 'Banco de Chile': { c: '#0033A0', glyph: 'shield' }, 'Santander': { c: '#EC0000', glyph: 'flame' }, 'BCI': { c: '#003DA6', glyph: 'square' }, 'Falabella': { c: '#0E8E3E', glyph: 'leaf' }, 'Itaú': { c: '#EC7000', glyph: 'arc' }, 'Mach': { c: '#FF3358', glyph: 'm' }, 'Tenpo': { c: '#00C2A8', glyph: 'wave' }, 'BancoEstado': { c: '#0050A0', glyph: 'pillar' }, }; const b = brands[name] || { c: '#0B1220', glyph: 'square' }; // Logos reales (PNG) cuando existen; si no, cae al glyph genérico. const logos = { 'Banco de Chile': '/static/bancodechile.png', 'Santander': '/static/santander.png', 'BCI': '/static/bci_icon.png', 'Falabella': '/static/banco_falabella_ready.png', 'Itaú': '/static/itau_icon.png', 'Mach': '/static/mach_icon_ready.png', 'Scotiabank': '/static/scotiabank_ready.png', 'Tenpo': '/static/tenpo_ready.png', }; const src = logos[name]; const Glyph = () => { const s = 22; const stroke = { fill: 'none', stroke: b.c, strokeWidth: 2.4, strokeLinecap: 'round', strokeLinejoin: 'round' }; switch (b.glyph) { case 'shield': return ; case 'flame': return ; case 'square': return ; case 'leaf': return ; case 'arc': return ; case 'm': return ; case 'wave': return ; case 'pillar': return ; default: return null; } }; return (
{src ? {name} : } {name}
); } function ApplePayMark({ color = '#0B1220', size = 22 }) { return ( {/* generic apple silhouette */} Pay ); } window.BankLogo = BankLogo; window.ApplePayMark = ApplePayMark;