mirror of https://github.com/portainer/portainer
18 lines
506 B
TypeScript
18 lines
506 B
TypeScript
import { Authorized } from '@/react/hooks/useUser';
|
|
|
|
import { TextTip } from '@@/Tip/TextTip';
|
|
|
|
interface Props {
|
|
showSystemResources: boolean;
|
|
}
|
|
|
|
export function SystemResourceDescription({ showSystemResources }: Props) {
|
|
return !showSystemResources ? (
|
|
<Authorized authorizations="K8sAccessSystemNamespaces" adminOnlyCE>
|
|
<TextTip color="blue" className="!mb-0">
|
|
System resources are hidden, this can be changed in the table settings
|
|
</TextTip>
|
|
</Authorized>
|
|
) : null;
|
|
}
|