import {PageModal} from '@components';
import ContainerScrap from '@pages/container-scrap';
import {FC} from 'react';

type Props = {
  id: string,
  onClose: () => void,
  visible: boolean,
};

const ScrapLogModal: FC<Props> = function({id, onClose, visible}) {
  return (
    <PageModal
      visible={visible}
      testId='container_scrap_log_modal'
      onClose={onClose}
    >
      <ContainerScrap id={id} />
    </PageModal>
  );
};

export default ScrapLogModal;
