package main // locationCardComponent renders a location card with doodled pin overlay. templ locationCardComponent(data LocationCardData) {
if data.MapImage != "" { Map of our location } else {
Map preview
}

Find us

if data.Address != "" {
{ data.Address }
} else {

Add an address to render the location card.

} if data.DirectionsURL != "" { Directions }
}