UNPKG

@os-design/website

Version:

24 lines 1.5 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const Copyright_1 = __importDefault(require("./Copyright")); const FooterCompanyInfo_1 = __importDefault(require("./FooterCompanyInfo")); const FooterLogo_1 = __importDefault(require("./FooterLogo")); const FooterNavigation_1 = __importDefault(require("./FooterNavigation")); const FooterContainer_1 = __importDefault(require("./FooterContainer")); const Footer = props => { const hasNavigation = props.children !== undefined; const renderFooterLogo = () => props.logo && (react_1.default.createElement(FooterLogo_1.default, { hasNavigation: hasNavigation }, props.logo)); const renderFooterNavigation = () => props.children && (react_1.default.createElement(FooterNavigation_1.default, { maxHeight: props.maxHeight }, props.children)); return (react_1.default.createElement(FooterContainer_1.default, { darkMode: props.darkMode, hasNavigation: hasNavigation }, props.logo && renderFooterLogo(), props.children && renderFooterNavigation(), react_1.default.createElement(FooterCompanyInfo_1.default, { hasNavigation: hasNavigation }, props.info, react_1.default.createElement(Copyright_1.default, null)))); }; exports.default = Footer; //# sourceMappingURL=index.js.map