-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathindex.tsx
41 lines (36 loc) · 970 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*--------------------------------------------------------------------------
* Copyright (c) 2019-2021, Postgres.ai, Nikolay Samokhvalov nik@postgres.ai
* All Rights Reserved. Proprietary and confidential.
* Unauthorized copying of this file, via any medium is strictly prohibited
*--------------------------------------------------------------------------
*/
import React from 'react'
import { makeStyles } from '@material-ui/core'
import Box from '@mui/material/Box'
import clsx from 'clsx'
const useStyles = makeStyles(
{
root: {
padding: '20px 0',
flex: '1 1 100%',
},
},
{ index: 1 },
)
type Props = {
className?: string
children: React.ReactNode
}
export const StubContainer = (props: Props) => {
const classes = useStyles()
return (
<Box
display="flex"
justifyContent="center"
alignItems="center"
className={clsx(classes.root, props.className)}
>
{props.children}
</Box>
)
}