mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-05 16:30:37 +02:00
33 lines
928 B
JavaScript
33 lines
928 B
JavaScript
import React from 'react';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import { configShape } from '../util/shapes';
|
|
|
|
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()
|
|
}
|
|
className="cookie-settings-button-mobile"
|
|
>
|
|
<FormattedMessage id="cookie-settings" default="Cookie settings" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div className="mobile-footer-bar-container">
|
|
<div className="mobile-footer-bar" />
|
|
</div>
|
|
</div>
|
|
) : null;
|
|
};
|
|
|
|
MobileFooter.contextTypes = {
|
|
config: configShape.isRequired,
|
|
};
|
|
|
|
export default MobileFooter;
|