import React from 'react'; import { Info } from 'lucide-react'; interface MethodologyFooterProps { sources?: string; methodology?: string; notes?: string; lastUpdated?: string; } /** * MethodologyFooter - McKinsey-style footer for charts and visualizations * * Displays sources, methodology, notes, and last updated information * in a professional, consulting-grade format. */ const MethodologyFooter: React.FC = ({ sources, methodology, notes, lastUpdated, }) => { if (!sources && !methodology && !notes && !lastUpdated) { return null; } return (
{sources && (
Fuentes: {sources}
)} {methodology && (
Metodología: {methodology}
)} {notes && (
Nota: {notes}
)} {lastUpdated && (
Última actualización: {lastUpdated}
)}
); }; export default MethodologyFooter;