digitransit-ui/app/component/MobileFooter.js
2025-05-06 09:16:37 +03:00

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;