/ common / components / Footer / PreFooter.tsx
PreFooter.tsx
 1  import React from 'react';
 2  
 3  import translate, { translateRaw } from 'translations';
 4  import './PreFooter.scss';
 5  
 6  interface Props {
 7    openModal(): void;
 8  }
 9  
10  const PreFooter: React.SFC<Props> = ({ openModal }) => {
11    return (
12      <section className="pre-footer">
13        <div className="container">
14          <p>
15            {translate('PREFOOTER_WARNING')}{' '}
16            <a onClick={openModal}>{translateRaw('PREFOOTER_SECURITY_WARNING')}</a>
17          </p>
18        </div>
19      </section>
20    );
21  };
22  
23  export default PreFooter;