1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-30 06:56:23 +07:00
verdaccio-ui/src/components/Header/HeaderInfoDialog.tsx

20 lines
537 B
TypeScript
Raw Normal View History

import React from 'react';
import RegistryInfoDialog from '../RegistryInfoDialog';
import RegistryInfoContent from '../RegistryInfoContent';
interface Props {
isOpen: boolean;
onCloseDialog: () => void;
registryUrl: string;
scope: string;
}
const HeaderInfoDialog: React.FC<Props> = ({ onCloseDialog, isOpen, registryUrl, scope }) => (
<RegistryInfoDialog onClose={onCloseDialog} open={isOpen}>
<RegistryInfoContent registryUrl={registryUrl} scope={scope} />
</RegistryInfoDialog>
);
export default HeaderInfoDialog;