import React from "react";
import JDIcon, {IconConifgProps} from "../icons/Icons";

export interface IDrawerProps extends IconConifgProps {
  open: boolean;
  onClick: (e: any) => void;
}

const Drawer: React.FC<IDrawerProps> = ({open, onClick, ...props}) => {
  return (
    <JDIcon onClick={onClick} hover {...props} icon={open ? "vUp" : "vDown"} />
  );
};

export default Drawer;
