mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
Initial Commit Rework
This commit is contained in:
parent
74a4cc048c
commit
95051cbd63
2483 changed files with 101351 additions and 111396 deletions
38
frontend/src/Components/Menu/ToolbarMenuButton.js
Normal file
38
frontend/src/Components/Menu/ToolbarMenuButton.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import Icon from 'Components/Icon';
|
||||
import MenuButton from 'Components/Menu/MenuButton';
|
||||
import styles from './ToolbarMenuButton.css';
|
||||
|
||||
function ToolbarMenuButton(props) {
|
||||
const {
|
||||
iconName,
|
||||
text,
|
||||
...otherProps
|
||||
} = props;
|
||||
|
||||
return (
|
||||
<MenuButton
|
||||
className={styles.menuButton}
|
||||
{...otherProps}
|
||||
>
|
||||
<div>
|
||||
<Icon
|
||||
name={iconName}
|
||||
size={22}
|
||||
/>
|
||||
|
||||
<div className={styles.label}>
|
||||
{text}
|
||||
</div>
|
||||
</div>
|
||||
</MenuButton>
|
||||
);
|
||||
}
|
||||
|
||||
ToolbarMenuButton.propTypes = {
|
||||
iconName: PropTypes.string.isRequired,
|
||||
text: PropTypes.string
|
||||
};
|
||||
|
||||
export default ToolbarMenuButton;
|
Loading…
Add table
Add a link
Reference in a new issue