package com.realnet.OpenAi.Renders;

import java.util.Map;

public class HeaderRenderer {
	public static String render(Map<String, Object> json) {
		String heading = String.valueOf(json.getOrDefault("title", ""));
		String subheading = String.valueOf(json.getOrDefault("subtitle", ""));

		return "<header class='hero-header'>" + "<h1>" + heading + "</h1>" + "<p>" + subheading + "</p>"
				+ "<div class='cta-buttons'>" + "<button>Sign Up</button>" + "<button>Learn More</button>" + "</div>"
				+ "</header>";
	}
}
