// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {FormattedMessage} from 'react-intl'; import * as Utils from 'utils/utils.jsx'; import PropTypes from 'prop-types'; import React from 'react'; export default function SettingItemMin(props) { let editButton = null; let describeSection = null; if (!props.disableOpen && Utils.isMobile()) { editButton = (
  • {props.describe}
  • ); } else if (!props.disableOpen) { editButton = (
  • ); describeSection = (
  • {props.describe}
  • ); } return ( ); } SettingItemMin.propTypes = { title: PropTypes.node, disableOpen: PropTypes.bool, updateSection: PropTypes.func, describe: PropTypes.node };