mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
Create OverviewWrapper.tsx
This commit is contained in:
parent
f1f0c571b9
commit
067aefffde
41
src/pages/ValidatorOnboarding/Overview/OverviewWrapper.tsx
Normal file
41
src/pages/ValidatorOnboarding/Overview/OverviewWrapper.tsx
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
import { ReactNode } from 'react'
|
||||||
|
import { useTheme } from 'tamagui'
|
||||||
|
|
||||||
|
import './validatorLayout.css'
|
||||||
|
|
||||||
|
type OverviewWrapperProps = {
|
||||||
|
rightImageSrc?: string
|
||||||
|
children: ReactNode
|
||||||
|
imgHeight?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const OverviewWrapper = ({
|
||||||
|
rightImageSrc,
|
||||||
|
|
||||||
|
children,
|
||||||
|
imgHeight,
|
||||||
|
}: OverviewWrapperProps) => {
|
||||||
|
const theme = useTheme()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="layout" style={{ backgroundColor: theme.background.val }}>
|
||||||
|
<section className="layout-left">
|
||||||
|
<div className="container">
|
||||||
|
<div className="container-inner">{children}</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section className="layout-right">
|
||||||
|
<div className="image-container">
|
||||||
|
<img
|
||||||
|
src={rightImageSrc}
|
||||||
|
alt="background"
|
||||||
|
className="background-img"
|
||||||
|
style={{ height: imgHeight }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default OverviewWrapper
|
Loading…
x
Reference in New Issue
Block a user