summaryrefslogtreecommitdiff
path: root/garden/src/utils/districts.ts
blob: 9f2fb57784dd3cf5468006a88a4386f3ae307cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const DISTRICT_IMAGES: Record<string, string> = {
  arcadia: "/images/districts/arcadia.png",
  arles: "/images/districts/arles.png",
  hollywood: "/images/districts/hollywood.png",
  oxford: "/images/districts/oxford.png",
  petsburg: "/images/districts/petsburg.png",
  purgatory: "/images/districts/purgatory.png",
  "silicon-valley": "/images/districts/silicon.png",
  "silver-lake": "/images/districts/silver.png",
  "stratford-upon-avon": "/images/districts/stratford.png",
  tokyo: "/images/districts/tokyo.png",
};

export function districtImage(slug: string): string {
  return DISTRICT_IMAGES[slug] || "";
}

const OUTLINED_SLUGS = new Set([
  "arcadia",
  "arles",
  "silver-lake",
  "silicon-valley",
  "stratford-upon-avon",
  "purgatory",
  "tokyo",
]);

export function districtIconClass(slug: string): string {
  return OUTLINED_SLUGS.has(slug) ? "icon-outlined" : "";
}