package main

import (
	"bytes"
	"context"
)

// GothamTextBlock renders text with Gotham styling.
// Uses the same schema as the base text block.
func GothamTextBlock(ctx context.Context, content map[string]any) string {
	text := getString(content, "text")
	class := getString(content, "class")

	var buf bytes.Buffer
	_ = gothamTextComponent(text, class).Render(ctx, &buf)
	return buf.String()
}
