Added Marker for mission
This commit is contained in:
@@ -1,27 +1,9 @@
|
||||
import { MissionOptionalDefaults } from "@repo/db/zod";
|
||||
import { create } from "zustand";
|
||||
|
||||
interface Mission {
|
||||
id: string;
|
||||
addressLat: number;
|
||||
addressLng: number;
|
||||
addressStreet: string;
|
||||
addressCity: string;
|
||||
addressZip: string;
|
||||
missionCategory: string;
|
||||
missionKeyword: string;
|
||||
missionSummary: string;
|
||||
missionPatientInfo: string;
|
||||
missionAdditionalInfo: string;
|
||||
hpgAmbulanceState?: "ready" | "arrived" | "onway";
|
||||
hpgFireEngineState?: "ready" | "arrived" | "onway";
|
||||
hpgPoliceState?: "ready" | "arrived" | "onway";
|
||||
hpgLocationLat?: number;
|
||||
hpgLocationLng?: number;
|
||||
}
|
||||
|
||||
interface MissionStore {
|
||||
missions: Mission[];
|
||||
setMissions: (missions: Mission[]) => void;
|
||||
missions: MissionOptionalDefaults[];
|
||||
setMissions: (missions: MissionOptionalDefaults[]) => void;
|
||||
}
|
||||
|
||||
export const useMissionsStore = create<MissionStore>((set) => ({
|
||||
@@ -34,9 +16,9 @@ export const useMissionsStore = create<MissionStore>((set) => ({
|
||||
addressCity: "Berlin",
|
||||
addressZip: "10178",
|
||||
missionAdditionalInfo: "Additional info",
|
||||
missionCategory: "Category",
|
||||
missionKeyword: "Keyword",
|
||||
missionPatientInfo: "Patient info",
|
||||
missionCategory: "AB_Atmung",
|
||||
missionKeyword: "Zunehmende Atemnot",
|
||||
missionPatientInfo: "M/10",
|
||||
missionSummary: "Summary",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user