aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/NavigationIcon.js
blob: 41b9539843ce8dced19ddbd8e16a0c06533b3423 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from 'react';

import Icon from './Icon';

import './NavigationIcon.css';

/**
 * @typedef {Object} NavigationIconProps
 * @property {(event: React.MouseEvent) => void} onToggle
 */

 /**
  * Navigation icon
  * @param {NavigationIconProps} props
  */
function NavigationIcon(props) {
    return (
        <div id="navicon" className="mobile" onClick={props.onToggle}>
            <Icon name="ei-navicon" size="s"/>
        </div>
    );
}

export default React.memo(NavigationIcon);