"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toFooterItemResponse = toFooterItemResponse;
exports.toFooterResponse = toFooterResponse;
function toFooterItemResponse(footerItem) {
    return {
        id: footerItem.id,
        name: footerItem.name,
        url: footerItem.url,
        visible: footerItem.visible,
    };
}
function toFooterResponse(footer) {
    return {
        id: footer.id,
        name: footer.name,
        type: footer.type,
        visible: footer.visible,
        order: footer.order,
        items: footer.items.map(toFooterItemResponse),
    };
}
