import React, { useState } from 'react'; import { Search, ChevronRight, ShieldCheck, X, DollarSign, Info, Activity } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; export default function FeeTransparencyModule({ portfolio }) { const [isModalOpen, setIsModalOpen] = useState(false); const { hiddenFees } = portfolio; // Convert percentages to an illustrative dollar amount based on a $10,000 investment over 1 year const illustrativeInvestment = 10000; const expenseRatioCost = (illustrativeInvestment * (hiddenFees.expenseRatio / 100)).toFixed(2); const advisoryCost = (illustrativeInvestment * (hiddenFees.advisoryFee / 100)).toFixed(2); const totalCost = (parseFloat(expenseRatioCost) + parseFloat(advisoryCost) + hiddenFees.tradingCosts).toFixed(2); return ( <> setIsModalOpen(true)} className="h-full flex items-center justify-center" >

Radical Transparency

Fee Report

${Math.round(totalCost)}
{isModalOpen && (
setIsModalOpen(false)} className="absolute inset-0 bg-gs-navy/60 backdrop-blur-md" /> {/* Modal Header */}
Transparency Report

Radical Transparency

Cost breakdown per $10,000 invested annually

Fund Expense Ratios {hiddenFees.expenseRatio}% blended average
${expenseRatioCost}
Platform & Advisory {hiddenFees.advisoryFee}% management fee
${advisoryCost}
Estimated Trading Costs Bid/ask spreads & execution
${hiddenFees.tradingCosts.toFixed(2)}

Total Yearly Impact

${totalCost}

Fee Rating

{portfolio.feeImpact}

"The most expensive investment is the one with hidden costs. We provide this report to ensure your capital works for you, not the middleman."

)}
); }