"use client"; import clsx from "clsx"; import { useDashboardStore } from "@/hooks/useDashboardStore"; import { useI18n } from "@/hooks/useI18n"; export function CitySidebar() { const store = useDashboardStore(); const { t } = useI18n(); const sortedCities = [...store.cities].sort((a, b) => { const order = { high: 0, medium: 1, low: 2 }; return ( (order[a.risk_level as keyof typeof order] ?? 3) - (order[b.risk_level as keyof typeof order] ?? 3) ); }); return ( ); }