package main import ( "bytes" "context" ) // CorporateModernistButtonBlock renders the built-in `button` block with // squared 4px corners, accent fill or 1px outline only — no shadow, no // gradient. Content shape: {"label":"...", "href":"...", "variant":"primary|outline"}. func CorporateModernistButtonBlock(ctx context.Context, content map[string]any) string { label := getString(content, "label") if label == "" { label = getString(content, "text") } href := getString(content, "href") if href == "" { href = getString(content, "url") } if href == "" { href = "#" } variant := getString(content, "variant") if variant == "" { variant = "primary" } var buf bytes.Buffer _ = buttonOverrideComponent(label, href, variant).Render(ctx, &buf) return buf.String() }