import React from 'react'; import propTypes from 'prop-types'; import classNames from 'classnames'; import { Button } from '@edx/paragon'; import { ReactComponent as EmptyIcon } from '../../assets/empty.svg'; function 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 pt-5', { '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 EmptyPage;