Sha256: 5de7b53014f4f93b706c43163c7ee9b8c4c6f0e95ea0ce9d5efa08c49299a031
Contents?: true
Size: 947 Bytes
Versions: 7
Compression:
Stored size: 947 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import ForemanModal from 'foremanReact/components/ForemanModal'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import SnapshotForm from '../SnapshotForm'; import { SNAPSHOT_FORM_MODAL } from './SnapshotFormModalConstants'; const SnapshotFormModal = ({ host, setModalClosed, ...props }) => ( <ForemanModal id={SNAPSHOT_FORM_MODAL} title={sprintf(__('Create Snapshot for %s'), host.name)} enforceFocus > <ForemanModal.Header closeButton={false} /> <div> <SnapshotForm setModalClosed={setModalClosed} hostId={host.id} {...props} /> </div> </ForemanModal> ); SnapshotFormModal.propTypes = { host: PropTypes.shape({ id: PropTypes.number.isRequired, name: PropTypes.string.isRequired, }).isRequired, setModalClosed: PropTypes.func.isRequired, }; export default SnapshotFormModal;
Version data entries
7 entries across 7 versions & 1 rubygems