mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
New: Project Aphrodite
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import SelectedMenuItem from './SelectedMenuItem';
|
||||
|
||||
function ViewMenuItem(props) {
|
||||
const {
|
||||
name,
|
||||
selectedView,
|
||||
...otherProps
|
||||
} = props;
|
||||
|
||||
const isSelected = name === selectedView;
|
||||
|
||||
return (
|
||||
<SelectedMenuItem
|
||||
name={name}
|
||||
isSelected={isSelected}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
ViewMenuItem.propTypes = {
|
||||
name: PropTypes.string,
|
||||
selectedView: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
export default ViewMenuItem;
|
||||
Reference in New Issue
Block a user