A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
491 B
25 lines
491 B
import React from 'react'; |
|
import PropTypes from 'prop-types'; |
|
|
|
const Message = (props) => { |
|
switch (props.mode) { |
|
case 'error': |
|
return ( |
|
<p className='vimvixen-console-message vimvixen-console-error'> |
|
{ props.children } |
|
</p> |
|
); |
|
case 'info': |
|
return ( |
|
<p className='vimvixen-console-message vimvixen-console-info'> |
|
{ props.children } |
|
</p> |
|
); |
|
} |
|
}; |
|
|
|
Message.propTypes = { |
|
children: PropTypes.string, |
|
}; |
|
|
|
export default Message;
|
|
|