import { sprites } from "../../data";
import styles from "./styles.module.scss";

interface IBurgerProps {
  className?: string;
  onClick?: () => void;
}

function Burger({ className = "", onClick }: IBurgerProps) {
  return (
    <svg
      aria-hidden="true"
      width="16px"
      height="16px"
      className={`${styles.svg} ${className}`}
      onClick={onClick}
    >
      <use xlinkHref={`${sprites}#burger`}></use>
    </svg>
  );
}

export default Burger;
