mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
26 lines
621 B
JavaScript
26 lines
621 B
JavaScript
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
|
import {
|
|
EmptyState as PFEmptyState,
|
|
EmptyStateIcon,
|
|
Spinner,
|
|
} from '@patternfly/react-core';
|
|
|
|
const EmptyState = styled(PFEmptyState)`
|
|
--pf-c-empty-state--m-lg--MaxWidth: none;
|
|
min-height: 250px;
|
|
`;
|
|
|
|
// TODO: Better loading state - skeleton lines / spinner, etc.
|
|
const ContentLoading = ({ className }) => {
|
|
return (
|
|
<EmptyState variant="full" className={className}>
|
|
<EmptyStateIcon variant="container" component={Spinner} />
|
|
</EmptyState>
|
|
);
|
|
};
|
|
|
|
export { ContentLoading as _ContentLoading };
|
|
export default ContentLoading;
|