import PropTypes from "prop-types"; import BannerInfoElement from "./BannerInfoElement"; import { useTranslation } from "react-i18next"; function BannerInfo({info}) { const {t} = useTranslation(); const infoElements = Object.keys(info).map((key) => ( )) infoElements.push( ); return (
{infoElements}
) } BannerInfo.propTypes = { info: PropTypes.object.isRequired } export default BannerInfo;