Is there a way to only attach a click event when either !date.disabled
or date.availability === 'none'
is true?
<div class="relative h-20 border border-gray-100 sm:h-24"
@click="!date.disabled || date.availability !== 'none' ? selectDate(date) : null">
{{date}}
</div>