debian-image-builder-frontend/src/Components/Cockpit/RequireAdmin.tsx
regexowl 1fc1f0cb8d src: Run codemods and lint
Run `npx @patternfly/pf-codemods@latest src --v6 --fix` and lint autofix to get the bulk of the changes in.
2025-05-28 09:08:52 -05:00

24 lines
588 B
TypeScript

import React from 'react';
import {
EmptyState,
EmptyStateBody,
EmptyStateVariant,
} from '@patternfly/react-core';
import { LockIcon } from '@patternfly/react-icons';
export const RequireAdmin = () => {
return (
<EmptyState
headingLevel="h4"
icon={LockIcon}
titleText="Access is limited."
variant={EmptyStateVariant.xl}
>
<EmptyStateBody>
Administrative access is required to run the Image Builder frontend.
Click on the icon in the toolbar to grant administrative access.
</EmptyStateBody>
</EmptyState>
);
};