import {defineStore} from 'pinia' export const restaurantStore = defineStore('restaurantStore', { state(){ return { id: '', name: '', address: '', workingHours: '', availableServices: [], averageRating: 0 } }, actions: { setDetails (id, name, address, workingHours, availableServices) { this.id = id this.name = name this.address = address this.workingHours = workingHours this.availableServices = availableServices }, newRestaurant (id) { this.id = id } }, getters: { } })