2017-06-21 06:40:28 +00:00
|
|
|
import React from 'react';
|
2020-04-30 12:36:30 +00:00
|
|
|
import { FiMenu } from 'react-icons/fi';
|
|
|
|
import { useDispatch } from 'react-redux';
|
|
|
|
import Button from 'components/ui/Button';
|
|
|
|
import { toggleMenu } from 'state/ui';
|
2017-06-21 06:40:28 +00:00
|
|
|
|
2020-04-30 12:36:30 +00:00
|
|
|
const Navicon = () => {
|
|
|
|
const dispatch = useDispatch();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Button
|
|
|
|
className="navicon"
|
|
|
|
icon={FiMenu}
|
|
|
|
onClick={() => dispatch(toggleMenu())}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
2017-06-21 06:40:28 +00:00
|
|
|
|
|
|
|
export default Navicon;
|