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