<%@ taglib prefix="c" uri="jakarta.tags.core" %>

<%@ attribute name="title" required="true" rtexprvalue="true" type="java.lang.String" %>
<%@ attribute name="marginTop" required="false" rtexprvalue="true" type="java.lang.Integer" %>
<%@ attribute name="marginBotttom" required="false" rtexprvalue="true" type="java.lang.Integer" %>

<%@ tag body-content="empty" %>

<c:set var="marginTop" value="${empty marginTop ? 0 : marginTop}"></c:set>
<c:set var="marginBotttom" value="${empty marginBotttom ? 2 : marginBotttom}"></c:set>

<div class="titleFont3 titleBottomLine" style="margin-top: ${marginTop}rem; margin-bottom: ${marginBotttom}rem;">${title}</div>