mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-10-02 12:33:44 +02:00
25 lines
660 B
JavaScript
25 lines
660 B
JavaScript
import React from 'react';
|
|
import { configShape } from '../util/shapes';
|
|
import CookieSettingsButton from './CookieSettingsButton';
|
|
|
|
const MobileFooter = (props, { config }) => {
|
|
return config.useCookiesPrompt ? (
|
|
<div className="mobile-footer">
|
|
<div style={{ margin: '15px' }}>
|
|
<div>{config.copyrightText || ''}</div>
|
|
<div>
|
|
<CookieSettingsButton isMobile />
|
|
</div>
|
|
</div>
|
|
<div className="mobile-footer-bar-container">
|
|
<div className="mobile-footer-bar" />
|
|
</div>
|
|
</div>
|
|
) : null;
|
|
};
|
|
|
|
MobileFooter.contextTypes = {
|
|
config: configShape.isRequired,
|
|
};
|
|
|
|
export default MobileFooter;
|