mirror of
https://github.com/strapi/strapi.git
synced 2025-08-04 23:03:00 +00:00
23 lines
441 B
JavaScript
23 lines
441 B
JavaScript
![]() |
/**
|
||
|
*
|
||
|
* ToggleOption
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import React from 'react';
|
||
|
import { injectIntl, intlShape } from 'react-intl';
|
||
|
|
||
|
const ToggleOption = ({ value, message, intl }) => (
|
||
|
<option value={value}>
|
||
|
{intl.formatMessage(message).toUpperCase()}
|
||
|
</option>
|
||
|
);
|
||
|
|
||
|
ToggleOption.propTypes = {
|
||
|
value: React.PropTypes.string.isRequired,
|
||
|
message: React.PropTypes.object.isRequired,
|
||
|
intl: intlShape.isRequired,
|
||
|
};
|
||
|
|
||
|
export default injectIntl(ToggleOption);
|