package com.realnet.OpenAi.Renders;

import java.util.Map;

public class SectionRenderFactory {

	public static String renderSection(String type, Map<String, Object> json) {
		if (type == null || json == null)
			return "<div class='empty-section'></div>";

		switch (type.toLowerCase()) {
		case "navbar":
			return NavbarRenderer.render(json);
		case "header":
			return HeaderRenderer.render(json);
		case "featuresection":
			return FeatureSectionRenderer.render(json);
		case "testimonial":
			return TestimonialRenderer.render(json);
		case "footer":
			return FooterRenderer.render(json);
		default:
			return "<div class='unknown-section'></div>";
		}
	}
}
