CoastalCommitsPastes/client/app/root-layout-wrapper.tsx

25 lines
463 B
TypeScript
Raw Normal View History

2022-11-09 18:38:05 -08:00
"use client"
2022-11-12 18:39:03 -08:00
import Header from "@components/header"
import Page from "@components/page"
2022-11-12 18:39:03 -08:00
import * as RadixTooltip from "@radix-ui/react-tooltip"
2022-11-09 18:38:05 -08:00
export function LayoutWrapper({
children,
signedIn,
isAdmin
}: {
children: React.ReactNode
2022-11-12 18:39:03 -08:00
signedIn?: boolean
isAdmin?: boolean
}) {
2022-11-09 18:38:05 -08:00
return (
2022-11-12 18:39:03 -08:00
<RadixTooltip.Provider delayDuration={200}>
<Page>
<Header isAdmin={isAdmin} signedIn={signedIn} />
{children}
</Page>
2022-11-12 18:39:03 -08:00
</RadixTooltip.Provider>
2022-11-09 18:38:05 -08:00
)
}