import React from "react";
import styled from "styled-components";
import { Flex } from "@netdata/netdata-ui";
import Header from "../header";
import Sidebar from "../sidebar";
const Wrapper = styled(Flex).attrs({
    position: "fixed",
    justifyContent: "start",
    alignItems: "start",
    width: "100%",
    zIndex: 10,
}) `
  top: 0;
  left: 0;
  pointer-events: none;
`;
const Layout = ({ children, printMode }) => {
    if (printMode)
        return children;
    return (React.createElement(Wrapper, null,
        React.createElement(Sidebar, null),
        React.createElement(Header, null),
        children));
};
export default Layout;
//# sourceMappingURL=index.js.map