import { EventFragment } from "@/lib/event"; import styles from "./eventHeader.module.scss"; import { Image } from "@/components/general/Image"; import Link from "next/link"; import { OrganizerList } from "./OrganizerList"; import Icon from "../general/Icon"; import { Breadcrumb } from "../general/Breadcrumb"; function formatPrice(price: number): string { if (price === null) { // should not happen return "?"; } if (price === 0) { return "Gratis"; } return `${price} kr`; } export const EventHeader = ({ event }: { event: EventFragment }) => { // TODO: where should we show image attribution for the featured image? const featuredImage: any = event.featuredImage; return (