export let widget_c4_container = (b) => {
let w = attr_or(b, "width", 160)
let h = attr_or(b, "height", 90)
let name = attr_or(b, "label", "Container")
let tech = attr_or(b, "technology", "")
let desc = attr_or(b, "description", "")
let color = attr_or(b, "color", "#438DD5")
let bg_fill = attr_or(b, "background_fill", color)
let label_fill = attr_or(b, "label_fill", "#fff")
let muted_fill = attr_or(b, "muted_fill", label_fill)
let base = [
{ kind = "rect", x = 0, y = 0, width = w, height = h, rx = 6, fill = bg_fill },
{ kind = "text", x = 0, y = 8, width = w, height = 20,
content = name, font_size = 14, fill = label_fill }
]
let tech_part = tech != "" ? [{ kind = "text", x = 0, y = 26,
width = w, height = 14, content = "[" + tech + "]", font_size = 10,
fill = muted_fill, opacity = 0.7 }] : []
let desc_part = desc != "" ? [{ kind = "text", x = 6, y = 44,
width = w - 12, height = 16, content = desc, font_size = 10,
fill = muted_fill, opacity = 0.85 }] : []
concat(concat(base, tech_part), desc_part)
}