Files
Readarr/frontend/src/Author/Index/Overview/AuthorIndexOverviewInfoRow.js
T
2020-05-19 21:50:37 +01:00

36 lines
660 B
JavaScript

import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import styles from './AuthorIndexOverviewInfoRow.css';
function AuthorIndexOverviewInfoRow(props) {
const {
title,
iconName,
label
} = props;
return (
<div
className={styles.infoRow}
title={title}
>
<Icon
className={styles.icon}
name={iconName}
size={14}
/>
{label}
</div>
);
}
AuthorIndexOverviewInfoRow.propTypes = {
title: PropTypes.string,
iconName: PropTypes.object.isRequired,
label: PropTypes.string.isRequired
};
export default AuthorIndexOverviewInfoRow;