digitransit-ui/app/component/MobileFooter.js
2023-03-13 09:54:59 +02:00

39 lines
1,020 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
const MobileFooter = (props, { config }) => {
return (
<>
{config.useCookiesPrompt && (
<div className="mobile-footer">
<div style={{ margin: '15px' }}>
<div>{config.copyrightText || ''}</div>
<div>
<button
type="button"
onClick={() =>
window.CookieConsent.renew && window.CookieConsent.renew()
}
>
<FormattedMessage
id="cookie-settings"
default="Cookie settings"
/>
</button>
</div>
</div>
<div className="mobile-footer-bar-container">
<div className="mobile-footer-bar" />
</div>
</div>
)}
</>
);
};
MobileFooter.contextTypes = {
config: PropTypes.object.isRequired,
};
export default MobileFooter;