import * as React from "react";
import { useRef } from "react";
import { Flex, useColorMode } from "@chakra-ui/core";
import { useConfig, useHyperglassState } from "app/context";
import { Debugger, Greeting, Footer, Header } from "app/components";
const bg = { light: "white", dark: "black" };
const color = { light: "black", dark: "white" };
export const Layout = ({ children }) => {
const config = useConfig();
const { colorMode } = useColorMode();
const { greetingAck, setGreetingAck } = useHyperglassState();
const containerRef = useRef(null);
return (
<>
{children}
{config.developer_mode && }
{config.web.greeting.enable && !greetingAck && (
)}
>
);
};