/*!
 * OpenUI5
 * (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define([],
	function() {
		"use strict";

		/**
		 * PlanningCalendarHeader renderer.
		 * @namespace
		 */
		var PlanningCalendarHeaderRenderer = {
			apiVersion: 2
		};

		/**
		 * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
		 *
		 * @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
		 * @param {sap.m.PlanningCalendarHeader} oHeader An object representation of the <code>PlanningCalendarHeaderRenderer</code> control that should be rendered.
		 */
		PlanningCalendarHeaderRenderer.render = function(oRm, oHeader){
			var oActionsToolbar = oHeader.getAggregation("_actionsToolbar"),
				oNavigationToolbar = oHeader.getAggregation("_navigationToolbar");

			oRm.openStart("div", oHeader);
			oRm.class("sapMPCHead");
			oRm.openEnd();

			if (oActionsToolbar) {
				oRm.renderControl(oActionsToolbar);
			}

			if (oNavigationToolbar) {
				oRm.renderControl(oNavigationToolbar);
			}

			oRm.close("div");
		};

		return PlanningCalendarHeaderRenderer;

	}, /* bExport= */ true);