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

25 lines
463 B
TypeScript
Raw Normal View History

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