import React from "react"; import PropTypes from "prop-types"; import Text from "../text"; import { EmptyContentBody, EmptyContentImage, } from "./styled-empty-screen-container"; const EmptyScreenContainer = (props) => { const { imageSrc, imageAlt, headerText, subheadingText, descriptionText, buttons, } = props; return ( {headerText && ( {headerText} )} {subheadingText && ( {subheadingText} )} {descriptionText && ( {descriptionText} )} {buttons &&
{buttons}
}
); }; EmptyScreenContainer.propTypes = { /** Image url source */ imageSrc: PropTypes.string, /** Alternative image text */ imageAlt: PropTypes.string, /** Header text */ headerText: PropTypes.string, /** Subheading text */ subheadingText: PropTypes.string, /** Description text */ descriptionText: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), /** Content of EmptyContentButtonsContainer */ buttons: PropTypes.any, /** Accepts class */ className: PropTypes.string, /** Accepts id */ id: PropTypes.string, /** Accepts css style */ style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), }; export default EmptyScreenContainer;