import { create } from 'zustand'; interface VehicleState { vehicleBrand: string; BrandID: string; vehicleModel: string; ModelID: string; licensePlate: string; setVehicleBrand: (brand: string) => void; setBrandID: (id: string) => void; setVehicleModel: (model: string) => void; setModelID: (id: string) => void; setLicensePlate: (plate: string) => void; } // Create the store const useVehicleStore = create((set) => ({ vehicleBrand: 'default', BrandID: '2a9a1d32-a7be-402a-b9a1-5d8203324bde', vehicleModel: 'default', ModelID: '2678ca64-8e21-4df9-954c-f38088849e46', licensePlate: '', setVehicleBrand: (brand: string) => set({ vehicleBrand: brand }), setBrandID: (id: string) => set({ BrandID: id }), setVehicleModel: (model: string) => set({ vehicleModel: model }), setModelID: (id: string) => set({ ModelID: id }), setLicensePlate: (plate: string) => set({ licensePlate: plate }) })); export default useVehicleStore;