mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
unwind error handling use auth cookie as source of truth, fetch config only when authenticated
26 lines
617 B
JavaScript
26 lines
617 B
JavaScript
import React from 'react';
|
|
import { t } from '@lingui/macro';
|
|
import { withI18n } from '@lingui/react';
|
|
import {
|
|
Title,
|
|
EmptyState,
|
|
EmptyStateIcon,
|
|
EmptyStateBody
|
|
} from '@patternfly/react-core';
|
|
import { CubesIcon } from '@patternfly/react-icons';
|
|
|
|
const ContentEmpty = ({ i18n, title = '', message = '' }) => (
|
|
<EmptyState>
|
|
<EmptyStateIcon icon={CubesIcon} />
|
|
<Title size="lg">
|
|
{title || i18n._(t`No items found.`)}
|
|
</Title>
|
|
<EmptyStateBody>
|
|
{message}
|
|
</EmptyStateBody>
|
|
</EmptyState>
|
|
);
|
|
|
|
export { ContentEmpty as _ContentEmpty };
|
|
export default withI18n()(ContentEmpty);
|