import { Controller } from '@hotwired/stimulus' export default class extends Controller { static targets = [ "image", "info" ] updateDayInfo(event) { const image = this.imageTarget; const infoDay = this.infoTarget; image.src = event.target.dataset.image; infoDay.textContent = event.target.dataset.day; } }