import styled from 'styled-components';
import { H4, P } from 'trezor-ui-components';
import React from 'react';
import { FormattedMessage } from 'react-intl';

import l10nMessages from './index.messages';

const Wrapper = styled.div`
    display: flex;
    flex-direction: column;
    padding: 40px 35px 40px 35px;
`;

const Row = styled.div`
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
`;

const StyledParagraph = styled(P)`
    padding: 0 0 15px 0;
    text-align: center;
`;

const Seedless = () => (
    <Wrapper>
        <Row>
            <H4>
                <FormattedMessage {...l10nMessages.TR_DEVICE_IS_IN_SEEDLESS} />
            </H4>
            <StyledParagraph>
                <FormattedMessage {...l10nMessages.TR_DEVICE_IS_INITIALIZED_IN_SEEDLESS_MODE} />
            </StyledParagraph>
        </Row>
    </Wrapper>
);

export default Seedless;
