|
7 | 7 | // |
8 | 8 |
|
9 | 9 | import { |
10 | | - type AsideBrandLayoutProps, |
11 | | - AsideBrandLayout, |
| 10 | + AsideBrandLayoutAside, |
| 11 | + AsideBrandLayoutMain, |
| 12 | + AsideBrandLayoutRoot, |
12 | 13 | } from "@stanfordspezi/spezi-web-design-system/molecules/AsideBrandLayout"; |
| 14 | +import { type ReactNode } from "react"; |
13 | 15 | import { Logo } from "@/components/icons/Logo"; |
14 | 16 | import { LogoType } from "@/components/icons/LogoType"; |
15 | 17 |
|
16 | | -export const AsideEngageLayout = ( |
17 | | - props: Omit<AsideBrandLayoutProps, "aside">, |
18 | | -) => ( |
19 | | - <AsideBrandLayout |
20 | | - aside={ |
21 | | - <> |
22 | | - <div className="flex-center text-primary gap-6"> |
23 | | - <div className="flex-center bg-primary size-20 rounded-lg"> |
24 | | - <Logo className="w-10 text-white" /> |
25 | | - </div> |
26 | | - <LogoType className="h-auto w-48" /> |
| 18 | +interface AsideEngageLayoutProps { |
| 19 | + children?: ReactNode; |
| 20 | +} |
| 21 | + |
| 22 | +export const AsideEngageLayout = ({ children }: AsideEngageLayoutProps) => ( |
| 23 | + <AsideBrandLayoutRoot> |
| 24 | + <AsideBrandLayoutAside> |
| 25 | + <div className="flex-center text-primary gap-6"> |
| 26 | + <div className="flex-center bg-primary size-20 rounded-lg"> |
| 27 | + <Logo className="w-10 text-white" /> |
27 | 28 | </div> |
28 | | - <img |
29 | | - src="/stanfordbiodesign.png" |
30 | | - alt="Stanford Biodesign Logo" |
31 | | - className="h-[193px]" |
32 | | - /> |
33 | | - </> |
34 | | - } |
35 | | - {...props} |
36 | | - /> |
| 29 | + <LogoType className="h-auto w-48" /> |
| 30 | + </div> |
| 31 | + <img |
| 32 | + src="/stanfordbiodesign.png" |
| 33 | + alt="Stanford Biodesign Logo" |
| 34 | + className="h-[193px]" |
| 35 | + /> |
| 36 | + </AsideBrandLayoutAside> |
| 37 | + <AsideBrandLayoutMain>{children}</AsideBrandLayoutMain> |
| 38 | + </AsideBrandLayoutRoot> |
37 | 39 | ); |
0 commit comments