feat: prioritize warnings for selected province

This commit is contained in:
zv
2026-06-02 15:59:17 +02:00
parent 7b8c26d8f1
commit 22b8969379
9 changed files with 224 additions and 3 deletions

View File

@@ -112,7 +112,9 @@ export interface WeatherWarning {
publishedAt: string | null;
probability: number | null;
areas: string[];
provinces: Province[];
office: string | null;
}
export type WeatherMood = "warm" | "cloudy" | "wind" | "cold" | "night" | "mild";
import type { Province } from "@/types/province";

17
types/province.ts Normal file
View File

@@ -0,0 +1,17 @@
export type Province =
| "dolnośląskie"
| "kujawsko-pomorskie"
| "lubelskie"
| "lubuskie"
| "łódzkie"
| "małopolskie"
| "mazowieckie"
| "opolskie"
| "podkarpackie"
| "podlaskie"
| "pomorskie"
| "śląskie"
| "świętokrzyskie"
| "warmińsko-mazurskie"
| "wielkopolskie"
| "zachodniopomorskie";