????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././proc/self/root/opt/alt/alt-nodejs12/root/lib/node_modules/npm/docs/src/components/ |
Upload File : |
import React from 'react'
import Navbar from './navbar'
import Sidebar from './Sidebar'
import {Flex, Box} from 'rebass'
import { theme } from 'src/theme'
import { ThemeProvider } from 'styled-components'
const IS_STATIC = process.env.GATSBY_IS_STATIC
const Layout = ({children, path}) => {
const showSidebar = IS_STATIC || path.match(/cli-commands|configuring-npm|using-npm/)
return (
<ThemeProvider theme={theme}>
<Navbar />
<Flex w={1}>
{showSidebar && <Sidebar />}
<Box width={1}>{children}</Box>
</Flex>
</ThemeProvider>
)
}
export default Layout