go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/chirp/pkg/static/_nextjs/src/components/layout.tsx (about) 1 /** 2 * Copyright (c) 2024 - Present. Will Charczuk. All rights reserved. 3 * Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository. 4 */ 5 import {HeaderNavbar} from './headerNavbar' 6 import {SessionProvider} from './sessionProvider'; 7 8 type LayoutProps = { 9 children: React.ReactNode, 10 }; 11 12 export function Layout({children}: LayoutProps) { 13 return ( 14 <SessionProvider> 15 <HeaderNavbar /> 16 <main>{children}</main> 17 </SessionProvider> 18 ) 19 }