import React from 'react'; import Parser from 'html-react-parser'; import { PropTypes } from 'prop-types'; import './style.scss'; const RelatedInterviewsList = (props) => { if (!props.data || props.data[0] === null) { return
Loading...
; } else if (props.data.length < 1) { return
No results found
; } return (
Related
Interviews
); }; RelatedInterviewsList.propTypes = { data: PropTypes.arrayOf(PropTypes.shape({})).isRequired, toggleSingleInterview: PropTypes.func.isRequired, }; export default RelatedInterviewsList;