File size: 404 Bytes
a0fda44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from "react";

function IconWrapper({ active, children, className, onClick }) {
  return (
    <div
      className={`flex items-center justify-center w-[4rem] h-[4rem] rounded-full cursor-pointer hover:bg-secondary-light-text ${
        active && "bg-secondary-light-text"
      } ${className}`}
      onClick={onClick}
    >
      {children}
    </div>
  );
}

export default IconWrapper;