mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
463 B
TypeScript
25 lines
463 B
TypeScript
"use client"
|
|
|
|
import Header from "@components/header"
|
|
import Page from "@components/page"
|
|
import * as RadixTooltip from "@radix-ui/react-tooltip"
|
|
|
|
export function LayoutWrapper({
|
|
children,
|
|
signedIn,
|
|
isAdmin
|
|
}: {
|
|
children: React.ReactNode
|
|
signedIn?: boolean
|
|
isAdmin?: boolean
|
|
}) {
|
|
return (
|
|
<RadixTooltip.Provider delayDuration={200}>
|
|
<Page>
|
|
<Header isAdmin={isAdmin} signedIn={signedIn} />
|
|
{children}
|
|
</Page>
|
|
</RadixTooltip.Provider>
|
|
)
|
|
}
|