react-antd-admin-panel
Version:
Easy prototyping admin panel using React and Antd
16 lines • 957 B
JavaScript
import React from "react";
import { Layout, Row, Col } from "antd";
const Header = (props) => {
var _a, _b, _c, _d;
if (!props.logo) {
return (React.createElement(Layout.Header, { className: "site-layout", style: { padding: 0 } },
React.createElement(Row, null)));
}
return (React.createElement(Layout.Header, { className: "site-layout", style: { padding: 0 } },
React.createElement(Row, null,
props.children,
React.createElement(Col, null,
React.createElement("img", { alt: "", width: (_a = props.logo.width) !== null && _a !== void 0 ? _a : 109, height: (_b = props.logo.height) !== null && _b !== void 0 ? _b : 30, src: (_c = props.logo.src) !== null && _c !== void 0 ? _c : props.logo, style: (_d = props.logo.style) !== null && _d !== void 0 ? _d : { marginBottom: 4, marginLeft: 36 } })))));
};
export default Header;
//# sourceMappingURL=Header.js.map