File size: 441 Bytes
babeaf6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * src/components/Common/IconButton.jsx
 * A general-purpose Icon Button component
 * 
 * created by Lynchee on 7/19/23
 */

import React from 'react';
import './styles.css';

const IconButton = ({ Icon, className, onClick, bgcolor="default"}) => {
  return (
    <div className={`icon-button ${className} ${bgcolor}`} onClick={onClick}>
      <Icon className="icon-instance-node-small" />
    </div>
  );
};

export default IconButton;