# All files / components/TimeMarkMessage index.js

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33

    2x
    4x
    4x

    2x

    2x

    2x

     import React from 'react';
    import PropTypes from 'prop-types';
    import StyledTimeMarkContainer from './styles';

    const TimeMarkMessage = (props) => {
      const { message } = props;
      return (
        <StyledTimeMarkContainer className={props.className}>
          <div>
            <span>
              {message.text}
            </span>
          </div>
        </StyledTimeMarkContainer>
      );
    };

    TimeMarkMessage.propTypes = {
      className: PropTypes.string,
      message: PropTypes.shape({
        text: PropTypes.string,
      }),
    };

    TimeMarkMessage.defaultProps = {
      message: { text: '' },
      className: 'LT-TimeMarkMessage-Container',
    };

    TimeMarkMessage.displayName = 'TimeMarkMessage';

    export default TimeMarkMessage;