mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import {
|
|
Registry,
|
|
RegistryTypes,
|
|
} from '@/react/portainer/registries/types/registry';
|
|
|
|
export function getIsDockerHubRegistry(registry?: Registry | null) {
|
|
return (
|
|
!registry ||
|
|
registry.Type === RegistryTypes.DOCKERHUB ||
|
|
registry.Type === RegistryTypes.ANONYMOUS
|
|
);
|
|
}
|