mirror of https://github.com/boxyhq/jackson.git
12 lines
380 B
TypeScript
12 lines
380 B
TypeScript
import classNames from 'classnames';
|
|
|
|
export const IconButton = ({ Icon, tooltip, onClick, className, ...other }) => {
|
|
return (
|
|
<div className='tooltip' data-tip={tooltip}>
|
|
<button onClick={onClick} type='button' {...other}>
|
|
<Icon className={classNames('hover:scale-115 h-5 w-5 cursor-pointer text-secondary', className)} />
|
|
</button>
|
|
</div>
|
|
);
|
|
};
|