mirror of
https://github.com/SomboChea/ui
synced 2024-10-01 05:47:50 +07:00
20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
|
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;
|