| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  | // src/App.tsx
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:47:43 -03:00
										 |  |  | import { useState } from 'react'; | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  | import { MunicipioWidget } from './components/MunicipioWidget'; | 
					
						
							|  |  |  | import { MunicipioSelector } from './components/MunicipioSelector'; | 
					
						
							|  |  |  | import './App.css'; | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  | import { ResumenProvincialWidget } from './components/ResumenProvincialWidget'; | 
					
						
							|  |  |  | import { BancasWidget } from './components/BancasWidget'; | 
					
						
							|  |  |  | import { TelegramasView } from './components/TelegramasView'; | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | function App() { | 
					
						
							|  |  |  |   const [selectedMunicipioId, setSelectedMunicipioId] = useState<string | null>(null); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   return ( | 
					
						
							|  |  |  |     <> | 
					
						
							|  |  |  |       <h1>Elecciones 2025 - Resultados en Vivo</h1> | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |       <section> | 
					
						
							|  |  |  |         <ResumenProvincialWidget distritoId="02" /> | 
					
						
							|  |  |  |       </section> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <hr /> | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2025-08-15 17:45:54 -03:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |       <section> | 
					
						
							|  |  |  |         {/* Usamos el ID del distrito de Bs As ("02") */} | 
					
						
							|  |  |  |         <ResumenProvincialWidget distritoId="02" /> | 
					
						
							|  |  |  |       </section> | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  |       <hr /> | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |       <section> | 
					
						
							|  |  |  |         <h2>Consulta por Municipio</h2> | 
					
						
							|  |  |  |         <MunicipioSelector onMunicipioChange={setSelectedMunicipioId} municipios={[]} /> | 
					
						
							|  |  |  |         {selectedMunicipioId && ( | 
					
						
							|  |  |  |           <div style={{ marginTop: '20px' }}> | 
					
						
							|  |  |  |             <MunicipioWidget municipioId={selectedMunicipioId} /> | 
					
						
							|  |  |  |           </div> | 
					
						
							|  |  |  |         )} | 
					
						
							|  |  |  |       </section> | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       <section> | 
					
						
							|  |  |  |         <h2>Proyección de Bancas</h2> | 
					
						
							|  |  |  |         {/* Usamos el ID de la sección de La Plata ("0001") como ejemplo */} | 
					
						
							|  |  |  |         <BancasWidget seccionId="0001" />  | 
					
						
							|  |  |  |       </section> | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-15 17:31:51 -03:00
										 |  |  |       <hr /> | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       <section> | 
					
						
							|  |  |  |         <h2>Consulta de Resultados por Municipio</h2> | 
					
						
							|  |  |  |         <MunicipioSelector onMunicipioChange={setSelectedMunicipioId} municipios={[]} /> | 
					
						
							|  |  |  |         {selectedMunicipioId && ( | 
					
						
							|  |  |  |           <div style={{ marginTop: '20px' }}> | 
					
						
							|  |  |  |             <MunicipioWidget municipioId={selectedMunicipioId} /> | 
					
						
							|  |  |  |           </div> | 
					
						
							|  |  |  |         )} | 
					
						
							|  |  |  |       </section> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <hr /> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <section> | 
					
						
							|  |  |  |         <h2>Explorador de Telegramas</h2> | 
					
						
							|  |  |  |         <TelegramasView /> | 
					
						
							|  |  |  |       </section> | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  |     </> | 
					
						
							|  |  |  |   ); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default App; |