mirror of
https://github.com/status-im/ETHReport.git
synced 2025-01-09 21:56:02 +00:00
26 lines
705 B
JavaScript
26 lines
705 B
JavaScript
import React from 'react';
|
|
import { PropTypes } from 'prop-types';
|
|
import Parser from 'html-react-parser';
|
|
import Modal from '../../modal';
|
|
import './style.scss';
|
|
|
|
const SingleInterview = props => (
|
|
<Modal
|
|
isModalOpen={true}
|
|
closeModal={props.toggleSingleInterview}
|
|
>
|
|
<div className="single-interview">
|
|
<span className="number">{ props.activeSingleInterviewId }</span>
|
|
<div>{ Parser(props.selectedInterview.content) }</div>
|
|
</div>
|
|
</Modal>
|
|
);
|
|
|
|
SingleInterview.propTypes = {
|
|
activeSingleInterviewId: PropTypes.number.isRequired,
|
|
selectedInterview: PropTypes.shape({}).isRequired,
|
|
toggleSingleInterview: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default SingleInterview;
|