omnivore/packages/web/components/patterns/LoadingView.tsx

23 lines
467 B
TypeScript
Raw Normal View History

2022-02-11 17:24:33 +00:00
import { VStack } from '../../components/elements/LayoutPrimitives'
import { applyStoredTheme } from '../../lib/themeUpdater'
type LoadingViewProps = {
bgColor?: string
}
export function LoadingView(props: LoadingViewProps): JSX.Element {
2024-02-14 06:42:54 +00:00
applyStoredTheme()
2022-02-11 17:24:33 +00:00
return (
<VStack
alignment="center"
distribution="center"
css={{
bg: props.bgColor ?? '$grayBase',
height: '100vh',
width: '100vw',
}}
/>
)
}