UNPKG

@roderickhsiao/react-i13n

Version:

[Experiment] React I13n provides a performant and scalable solution to application instrumentation.

29 lines (27 loc) 663 B
/** * Copyright 2015 - Present, Yahoo Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import PropTypes from 'prop-types'; var DashboardTitle = props => { var { title } = props; var style = { background: '#6001d2', color: 'rgba(255,255,255,.87)', fontFamily: 'inherit', overflow: 'hidden', padding: '8px', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }; return /*#__PURE__*/React.createElement("li", { style: style }, title); }; DashboardTitle.propTypes = { title: PropTypes.string.isRequired }; export default DashboardTitle;