13 lines
293 B
TypeScript
13 lines
293 B
TypeScript
import type {IWishlist} from "~/types";
|
|
|
|
export const useWishlistStore = defineStore('wishlist', () => {
|
|
const wishlist = ref<IWishlist | null>(null);
|
|
const setWishlist = (payload: IWishlist | null) => {
|
|
wishlist.value = payload;
|
|
};
|
|
|
|
return {
|
|
wishlist,
|
|
setWishlist
|
|
};
|
|
})
|