2018-08-08 00:57:15 +00:00
|
|
|
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';
|
|
|
|
|
2018-08-08 00:57:15 +00:00
|
|
|
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}>
|
2020-02-09 19:15:43 +00:00
|
|
|
No artists found, to get started you'll want to add a new artist or album or add an existing library location (Root Folder) and update.
|
2017-09-04 02:20:56 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className={styles.buttonContainer}>
|
|
|
|
<Button
|
2020-02-09 19:15:43 +00:00
|
|
|
to="/settings/mediamanagement"
|
2017-09-04 02:20:56 +00:00
|
|
|
kind={kinds.PRIMARY}
|
|
|
|
>
|
2020-02-09 19:15:43 +00:00
|
|
|
Add Root Folder
|
2017-09-04 02:20:56 +00:00
|
|
|
</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>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2018-08-08 00:57:15 +00:00
|
|
|
NoArtist.propTypes = {
|
|
|
|
totalItems: PropTypes.number.isRequired
|
|
|
|
};
|
|
|
|
|
2017-09-04 02:20:56 +00:00
|
|
|
export default NoArtist;
|