Indexer and Search page work

This commit is contained in:
Qstick
2020-10-20 02:08:45 -04:00
parent 5c39ef2f76
commit f290afa68c
123 changed files with 3012 additions and 3274 deletions

View File

@@ -0,0 +1,65 @@
import PropTypes from 'prop-types';
import React from 'react';
import Label from 'Components/Label';
function CapabilitiesLabel(props) {
const {
supportsBooks,
supportsMovies,
supportsMusic,
supportsTv
} = props;
return (
<span>
{
supportsBooks ?
<Label>
{'Books'}
</Label> :
null
}
{
supportsMovies ?
<Label>
{'Movies'}
</Label> :
null
}
{
supportsMusic ?
<Label>
{'Music'}
</Label> :
null
}
{
supportsTv ?
<Label>
{'TV'}
</Label> :
null
}
{
!supportsTv && !supportsMusic && !supportsMovies && !supportsBooks ?
<Label>
{'None'}
</Label> :
null
}
</span>
);
}
CapabilitiesLabel.propTypes = {
supportsTv: PropTypes.bool.isRequired,
supportsBooks: PropTypes.bool.isRequired,
supportsMusic: PropTypes.bool.isRequired,
supportsMovies: PropTypes.bool.isRequired
};
export default CapabilitiesLabel;