From 12ecc97b07093f3cac6567c70ff75d57b429c674 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Tue, 21 Oct 2025 17:38:01 +0200
Subject: Implement new Santiago region (WIP)

---
 src/frontend/app/routes/settings.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

(limited to 'src/frontend/app/routes/settings.tsx')

diff --git a/src/frontend/app/routes/settings.tsx b/src/frontend/app/routes/settings.tsx
index bcda311..eae6ad8 100644
--- a/src/frontend/app/routes/settings.tsx
+++ b/src/frontend/app/routes/settings.tsx
@@ -2,6 +2,7 @@ import { type Theme, useApp } from "../AppContext";
 import "./settings.css";
 import { useTranslation } from "react-i18next";
 import { useState } from "react";
+import { getAvailableRegions } from "../data/RegionConfig";
 
 export default function Settings() {
   const { t, i18n } = useTranslation();
@@ -12,14 +13,35 @@ export default function Settings() {
     setTableStyle,
     mapPositionMode,
     setMapPositionMode,
+    region,
+    setRegion,
   } = useApp();
 
+  const regions = getAvailableRegions();
+
   return (
     <div className="page-container">
       <h1 className="page-title">{t("about.title")}</h1>
       <p className="about-description">{t("about.description")}</p>
       <section className="settings-section">
         <h2>{t("about.settings")}</h2>
+        <div className="settings-content-inline">
+          <label htmlFor="region" className="form-label-inline">
+            Región:
+          </label>
+          <select
+            id="region"
+            className="form-select-inline"
+            value={region}
+            onChange={(e) => setRegion(e.target.value as any)}
+          >
+            {regions.map((r) => (
+              <option key={r.id} value={r.id}>
+                {r.name}
+              </option>
+            ))}
+          </select>
+        </div>
         <div className="settings-content-inline">
           <label htmlFor="theme" className="form-label-inline">
             {t("about.theme")}
-- 
cgit v1.3

