tsurupin/portfolio

View on GitHub
frontend/src/cms/components/shared/ErrorMessage/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import React, { PropTypes } from 'react';
import styles from './styles';

const propTypes = {
  message: PropTypes.string.isRequired,
};

function ErrorMessage({ message }) {
  return (
    <div className={styles.root}>
      <p className={styles.text}>{message}</p>
    </div>
  );
}

ErrorMessage.propTypes = propTypes;

export default ErrorMessage;