mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
28 lines
538 B
TypeScript
28 lines
538 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import LoadingMask from 'sentry/components/loadingMask';
|
|
|
|
interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
height?: string;
|
|
}
|
|
|
|
const LoadingPanel = styled(({height: _height, ...props}: Props) => (
|
|
<div {...props}>
|
|
<LoadingMask />
|
|
</div>
|
|
))`
|
|
flex: 1;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
height: ${p => p.height};
|
|
position: relative;
|
|
border-color: transparent;
|
|
margin-bottom: 0;
|
|
`;
|
|
|
|
LoadingPanel.defaultProps = {
|
|
height: '200px',
|
|
};
|
|
|
|
export default LoadingPanel;
|