1
0
ohmyform/ui/components/auth/layout.tsx
Michael Schramm 9c4c325e5a
Switch to single branch (#221)
* remove submodules
* add api and ui files
* update github actions
* use sparse checkout
* update node setup
* update checkout
* update docker
* change permissions
* update mariadb health check
* update changelog
2023-12-02 19:22:40 +01:00

26 lines
565 B
TypeScript

import { Layout, Spin } from 'antd'
import getConfig from 'next/config'
import React from 'react'
import { NextConfigType } from '../../next.config.type'
const { publicRuntimeConfig } = getConfig() as NextConfigType
interface Props {
loading?: boolean
}
export const AuthLayout: React.FC<Props> = (props) => {
return (
<Spin spinning={props.loading || false}>
<Layout
style={{
height: '100vh',
background: publicRuntimeConfig.mainBackground,
}}
>
{props.children}
</Layout>
</Spin>
)
}