-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display logout button in peers and mirror pages
- Loading branch information
1 parent
440d5e6
commit 9ccdba1
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import SidebarComponent from '@/components/SidebarComponent'; | ||
import { Layout } from '@/lib/Layout'; | ||
import { cookies } from 'next/headers'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function PageLayout({ children }: PropsWithChildren) { | ||
return <Layout sidebar={<SidebarComponent />}>{children}</Layout>; | ||
return ( | ||
<Layout sidebar={<SidebarComponent logout={!!cookies().get('auth')} />}> | ||
{children} | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import SidebarComponent from '@/components/SidebarComponent'; | ||
import { Layout } from '@/lib/Layout'; | ||
import { cookies } from 'next/headers'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function PageLayout({ children }: PropsWithChildren) { | ||
return <Layout sidebar={<SidebarComponent />}>{children}</Layout>; | ||
return ( | ||
<Layout sidebar={<SidebarComponent logout={!!cookies().get('auth')} />}> | ||
{children} | ||
</Layout> | ||
); | ||
} |