You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
636 B
26 lines
636 B
import React from 'react';
|
|
import Modal from 'Components/Modal/Modal';
|
|
import { sizes } from 'Helpers/Props';
|
|
import IndexerInfoModalContent from './IndexerInfoModalContent';
|
|
|
|
interface IndexerInfoModalProps {
|
|
isOpen: boolean;
|
|
indexerId: number;
|
|
onModalClose(): void;
|
|
}
|
|
|
|
function IndexerInfoModal(props: IndexerInfoModalProps) {
|
|
const { isOpen, onModalClose, indexerId } = props;
|
|
|
|
return (
|
|
<Modal size={sizes.MEDIUM} isOpen={isOpen} onModalClose={onModalClose}>
|
|
<IndexerInfoModalContent
|
|
indexerId={indexerId}
|
|
onModalClose={onModalClose}
|
|
/>
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
export default IndexerInfoModal;
|