Lidarr/frontend/src/Components/Menu/SortMenu.js

34 lines
628 B
JavaScript
Raw Normal View History

2017-09-04 02:20:56 +00:00
import PropTypes from 'prop-types';
2017-10-07 06:21:06 +00:00
import React from 'react';
2017-09-04 02:20:56 +00:00
import { icons } from 'Helpers/Props';
import Menu from 'Components/Menu/Menu';
import ToolbarMenuButton from 'Components/Menu/ToolbarMenuButton';
2017-10-07 06:21:06 +00:00
function SortMenu(props) {
const {
className,
children,
...otherProps
} = props;
2017-09-04 02:20:56 +00:00
2017-10-07 06:21:06 +00:00
return (
<Menu
className={className}
{...otherProps}
>
<ToolbarMenuButton
iconName={icons.SORT}
text="Sort"
/>
{children}
</Menu>
);
2017-09-04 02:20:56 +00:00
}
SortMenu.propTypes = {
className: PropTypes.string,
children: PropTypes.node.isRequired
};
export default SortMenu;