mirror of
https://github.com/SomboChea/ui
synced 2024-06-28 22:15:32 +07:00
31 lines
582 B
JavaScript
31 lines
582 B
JavaScript
/**
|
|
* @prettier
|
|
* @flow
|
|
*/
|
|
|
|
import styled, { css } from 'react-emotion';
|
|
import CircularProgress from '@material-ui/core/CircularProgress/index';
|
|
import colors from '../../utils/styles/colors';
|
|
|
|
export const Wrapper = styled.div`
|
|
&& {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
${props =>
|
|
props.centered &&
|
|
css`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
`};
|
|
}
|
|
`;
|
|
|
|
export const Circular = styled(CircularProgress)`
|
|
&& {
|
|
color: ${colors.primary};
|
|
}
|
|
`;
|