import Header from './header' import Head from 'next/head' import Container from 'react-bootstrap/Container' import { LightningProvider } from './lightning' import { useRouter } from 'next/router' export default function Layout ({ noContain, children }) { const router = useRouter() const defaultTitle = router.asPath.split('?')[0].slice(1) return ( <> {defaultTitle && `${defaultTitle} \\ `}stacker news
{noContain ? children : ( {children} )} ) }