// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import * as Utils from 'utils/utils.jsx'; import Constants from 'utils/constants.jsx'; export default function DotMenuEdit(props) { let editId = null; if (props.idCount > -1) { editId = Utils.createSafeId(props.idPrefix + props.idCount); } if (props.idPrefix.indexOf(Constants.RHS_ROOT) === 0) { editId = props.idPrefix; } return (