MyCrypto/common/components/Footer/PreFooter.tsx

23 lines
510 B
TypeScript
Raw Normal View History

import React from 'react';
import './PreFooter.scss';
2018-03-23 16:58:33 +00:00
import translate, { translateRaw } from 'translations';
2018-02-10 18:56:05 +00:00
interface Props {
openModal(): void;
}
const PreFooter: React.SFC<Props> = ({ openModal }) => {
return (
<section className="pre-footer">
<div className="container">
<p>
{translate('PREFOOTER_WARNING')}{' '}
2018-03-23 16:58:33 +00:00
<a onClick={openModal}>{translateRaw('PREFOOTER_SECURITY_WARNING')}</a>
</p>
</div>
</section>
);
};
export default PreFooter;