| 1 |
import { PageControl } from '@launch/components/PageControl'; |
| 2 |
import { Logo } from '@launch/svg'; |
| 3 |
|
| 4 |
export const PageLayout = ({ children, includeNav = true }) => { |
| 5 |
return ( |
| 6 |
<div className="flex h-[calc(100dvh)] flex-col"> |
| 7 |
<div className="w-full flex-none bg-banner-main px-6 py-5 md:px-12 md:py-6"> |
| 8 |
{window.extSharedData?.partnerLogo ? ( |
| 9 |
<div className="flex h-10 max-w-52 items-center overflow-hidden md:max-w-72"> |
| 10 |
<img |
| 11 |
className="max-h-full max-w-full object-contain" |
| 12 |
src={window.extSharedData.partnerLogo} |
| 13 |
alt={window.extSharedData?.partnerName ?? ''} |
| 14 |
/> |
| 15 |
</div> |
| 16 |
) : ( |
| 17 |
<Logo className="h-8 w-auto text-banner-text" /> |
| 18 |
)} |
| 19 |
</div> |
| 20 |
{children} |
| 21 |
{includeNav && <PageControl />} |
| 22 |
</div> |
| 23 |
); |
| 24 |
}; |
| 25 |
|