19 lines
555 B
TypeScript
19 lines
555 B
TypeScript
import {useLocalStorage} from "@vueuse/core";
|
|
import {defineStore} from "pinia";
|
|
import type {MarketLocation} from "./MarketLocation";
|
|
|
|
const defaultLocation: MarketLocation = {
|
|
id: 60003760,
|
|
name: 'Jita IV - Moon 4 - Caldari Navy Assembly Plant',
|
|
systemId: 30000142,
|
|
systemName: 'Jita',
|
|
regionId: 10000002,
|
|
regionName: 'The Forge',
|
|
};
|
|
|
|
export const useMarketLocationStore = defineStore("marketLocation", () => {
|
|
const location = useLocalStorage<MarketLocation>("market-location", defaultLocation);
|
|
|
|
return {location};
|
|
});
|