package main import "html/template" type LiveEventPageParams struct { BaseEventPageParams OpenGraphParams HeadParams Details DetailsParams Content template.HTML LiveEvent Kind30311Metadata Clients []ClientReference } templ liveEventInnerBlock(params LiveEventPageParams) {

{ params.LiveEvent.Title } switch params.LiveEvent.Status { case "ended": Ended case "live": Live now! }

if params.LiveEvent.Host != nil { Streaming hosted by { params.LiveEvent.Host.Name } }
for _, v := range params.LiveEvent.Hashtags { { v } }
if params.LiveEvent.Summary != "" {
{ params.LiveEvent.Summary }
} if params.LiveEvent.Image != "" { { } } templ liveEventTemplate(params LiveEventPageParams, isEmbed bool) { if isEmbed { @embeddedPageTemplate( params.Event, params.NeventNaked, ) { @liveEventInnerBlock(params) } } else { @eventPageTemplate( params.LiveEvent.title(), params.OpenGraphParams, params.HeadParams, params.Clients, params.Details, params.Event, ) { @liveEventInnerBlock(params) } } }