mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-09-21 13:32:47 +02:00
39 lines
1,020 B
JavaScript
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;
|