import { useEffect, useState } from 'preact/hooks' const endpoint = 'https://kultar.sout.no/events/' const fetch_options = {} function Tickets({ ticket_link }) { console.log(ticket_link) return Biletter } function Time({ date }) { const hasTime = date.getHours() === 0 const time_option = hasTime ? undefined : 'numeric' const options = { month: 'long', weekday: 'long', day: 'numeric', hour: time_option, minute: time_option, } return
{host}, {area}.
) } if (hasHost) { return{host}.
} if (hasArea) { return{area}.
} return '' } function EventCard({ event }) { const { event_id, name, location, date, ticket_link } = event return (Laster arrangement...
} if (events.length <= 0) { returnDet er ingen fremtidige arrangement.
} return ( <> {events.map((event, index) => (