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'
import { NextSeo } from 'next-seo'
export default function Layout ({ noContain, noFooter, children }) {
const router = useRouter()
const defaultTitle = router.asPath.split('?')[0].slice(1)
const fullTitle = `${defaultTitle && `${defaultTitle} \\ `}stacker news`
const desc = 'Discuss Bitcoin. Stack sats. News for plebs.'
return (
<>
{noContain
? children
: (
{children}
)}
{!noFooter && }
>
)
}