Files
George Goldberg af6a14ff9d MM-12885: Add UI widgets AdminHeader and FormattedAdminHeader. (#2003)
This adds 2 new widgets:
* AdminHeader, which is a widget that makes the Admin Console page
header which can take any components or values as children.
* FormattedAdminHeader, which is a child widget that can be used where
the AdminHeader component is to contain a single localised (markdown)
string.

These are not the most complicated components in existence, but they are
distinctly UI widgets that can be separated from the code, and were
needed for the code I was writing at the present.
2018-11-15 11:56:09 +00:00

18 lines
390 B
React

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import PropTypes from 'prop-types';
const AdminHeader = (props) => (
<h3 className='admin-console-header'>
{props.children}
</h3>
);
AdminHeader.propTypes = {
children: PropTypes.node.isRequired,
};
export default AdminHeader;