+
+ {/* ── Header ── */}
+
+
+ Мои билеты
+
+
+
+
+ {/* ── Tabs ── */}
+
+ {(["active", "history"] as Tab[]).map((tab) => (
+
+ ))}
+
+
+ {/* ── Content ── */}
+
+ {loading ? (
+ <>
+
+
+
+ >
+ ) : error ? (
+
+
{error}
+
+
+ ) : displayed.length === 0 ? (
+
+
+
+ {activeTab === "active" ? "Нет активных билетов" : "История пуста"}
+
+
+ ) : (
+ displayed.map((ticket) => (
+
+ ))
+ )}
+
+
+ {/* ── Bottom navigation ── */}
+
+
+