class ArticleStore {
#article = [];
#selectedCategory = {};
#category = [];
constructor() {
makeAutoObservable(this);
}
setCategory(category){
this.#category = category;
}
setSelectedCategories(category){
this.#selectedCategory = category;
}
setArticle(article){
this.#article = article;
}
get category() {
return this.#category;
}
get selectedCategory() {
return this.#selectedCategory;
}
}