Lidarr/frontend/src/Artist/NoArtist.js

52 lines
1.1 KiB
JavaScript
Raw Normal View History

import PropTypes from 'prop-types';
2017-09-04 02:20:56 +00:00
import React from 'react';
import { kinds } from 'Helpers/Props';
import Button from 'Components/Link/Button';
import styles from './NoArtist.css';
function NoArtist(props) {
const { totalItems } = props;
if (totalItems > 0) {
return (
<div>
<div className={styles.message}>
All artists are hidden due to the applied filter.
</div>
</div>
);
}
2017-09-04 02:20:56 +00:00
return (
<div>
<div className={styles.message}>
2019-12-16 21:21:32 +00:00
No artist found, to get started you'll want to add a new artist or album or import some existing ones.
2017-09-04 02:20:56 +00:00
</div>
<div className={styles.buttonContainer}>
<Button
to="/add/import"
kind={kinds.PRIMARY}
>
Import Existing Artist(s)
</Button>
</div>
<div className={styles.buttonContainer}>
<Button
2019-12-16 21:21:32 +00:00
to="/add/search"
2017-09-04 02:20:56 +00:00
kind={kinds.PRIMARY}
>
Add New Artist
</Button>
</div>
</div>
);
}
NoArtist.propTypes = {
totalItems: PropTypes.number.isRequired
};
2017-09-04 02:20:56 +00:00
export default NoArtist;