Files
omnivore/packages/web/components/patterns/LoadingView.tsx
2024-02-14 14:42:54 +08:00

23 lines
467 B
TypeScript

import { VStack } from '../../components/elements/LayoutPrimitives'
import { applyStoredTheme } from '../../lib/themeUpdater'
type LoadingViewProps = {
bgColor?: string
}
export function LoadingView(props: LoadingViewProps): JSX.Element {
applyStoredTheme()
return (
<VStack
alignment="center"
distribution="center"
css={{
bg: props.bgColor ?? '$grayBase',
height: '100vh',
width: '100vw',
}}
/>
)
}