import React from 'react'; import propTypes from 'prop-types'; import { Button } from '@openedx/paragon'; import classNames from 'classnames'; import EmptyIcon from '../../assets/Empty'; const EmptyPage = ({ title, subTitle = null, action = null, actionText = null, fullWidth = false, }) => { const containerClasses = classNames( 'min-content-height justify-content-center align-items-center d-flex w-100 flex-column', { 'bg-light-400': !fullWidth }, ); return (

{title}

{subTitle &&

{subTitle}

} {action && actionText && ( )}
); }; EmptyPage.propTypes = { title: propTypes.string.isRequired, subTitle: propTypes.string, action: propTypes.func, actionText: propTypes.string, fullWidth: propTypes.bool, }; EmptyPage.defaultProps = { subTitle: null, action: null, fullWidth: false, actionText: null, }; export default React.memo(EmptyPage);