import { motion } from 'framer-motion'; import { useCallback } from 'react'; import PropTypes from 'prop-types'; import { clsm } from '../../utils'; const Hamburger = ({ isOpen }) => { const width = 24; const height = 16; const unitHeight = 4; const unitWidth = (unitHeight * width) / height; const lineProps = useCallback( (transformOrigin) => ({ initial: 'closed', animate: isOpen ? 'opened' : 'closed', strokeLinecap: 'round', vectorEffect: 'non-scaling-stroke', className: clsm([ 'stroke-[3.15px]', 'stroke-black', 'dark:stroke-white', transformOrigin ]) }), [isOpen] ); return ( {/* TOP */} {/* CENTER */} {/* BOTTOM */} ); }; Hamburger.defaultProps = { isOpen: false }; Hamburger.propTypes = { isOpen: PropTypes.bool }; export default Hamburger;