mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
22 lines
376 B
TypeScript
22 lines
376 B
TypeScript
import { Layout, Spin } from 'antd'
|
|
import React from 'react'
|
|
|
|
interface Props {
|
|
loading?: boolean
|
|
}
|
|
|
|
export const AuthLayout: React.FC<Props> = (props) => {
|
|
return (
|
|
<Spin spinning={props.loading}>
|
|
<Layout
|
|
style={{
|
|
height: '100vh',
|
|
background: '#437fdc',
|
|
}}
|
|
>
|
|
{props.children}
|
|
</Layout>
|
|
</Spin>
|
|
)
|
|
}
|