feat: create page wrapper for column pattern

This commit is contained in:
RadoslavDimchev 2023-08-10 13:33:27 +03:00
parent d903931bc8
commit ddefba4e3e
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import { ReactNode } from 'react'
import PageBackground from './PageBackground'
import { YStack } from 'tamagui'
type PageWrapperColumnProps = {
children: ReactNode
}
const PageWrapperColumn = ({ children }: PageWrapperColumnProps) => {
return (
<PageBackground>
<YStack
space={'$2'}
style={{
width: '100%',
justifyContent: 'center',
alignItems: 'center',
height: '100vh',
}}
>
{children}
</YStack>
</PageBackground>
)
}
export default PageWrapperColumn