"use client"; import clsx from "clsx"; import { useDashboardStore } from "@/hooks/useDashboardStore"; export function CitySidebar() { const store = useDashboardStore(); 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 ( ); }