appchoose-nextjs

get renderDeliveryText () { return "" // let delays = 3 // if (this.parent) { // delays = this.parent.delivery_delays || 3 // } // else if (this.delivery_delays) { // delays = this.delivery_delays // } // let startDate = addDays(Date.n

Usage no npm install needed!

<script type="module">
  import appchooseNextjs from 'https://cdn.skypack.dev/appchoose-nextjs';
</script>

README

get renderDeliveryText () {
    return ""
    // let delays = 3
    // if (this.parent) {
    // 	delays = this.parent.delivery_delays || 3
    // }
    // else if (this.delivery_delays) {
    // 	delays = this.delivery_delays
    // }
    // let startDate = addDays(Date.now(), delays)
    // if (isSunday(startDate)) {
    // 	startDate = addDays(startDate, 1)
    // }
    // let endDate = addDays(Date.now(), delays + 3)
    // if (isSunday(endDate)) {
    // 	endDate = addDays(endDate, 1)
    // }
    // return `${format(startDate, "DD/MM", { locale: eoLocaleFr })} et le ${format(endDate, "DD/MM", { locale: eoLocaleFr })}`
}