import React from 'react';
import { Button } from 'antd';
import styles from '../styles.module.css';
import { TbEdit, TbEditOff } from 'react-icons/tb';
import {
RiSettings5Fill,
RiSettings5Line,
RiDeleteBin2Line,
RiSave3Fill,
} from 'react-icons/ri';
import { BiMove, BiCopy } from 'react-icons/bi';
import { MdOutlineAddCircleOutline } from 'react-icons/md';
import { AiOutlineEye, AiOutlineEyeInvisible } from 'react-icons/ai';
const ButtonWithIcon = ({
type = 'delete-button',
isExpand = false,
onClick = () => {},
onCancel = () => {},
disabled = false,
}) => {
let buttonProps = {};
switch (type) {
case 'show-button':
if (isExpand) {
buttonProps = {
onClick: onCancel,
icon: ,
};
break;
}
buttonProps = {
onClick: onClick,
icon: ,
};
break;
case 'copy-button':
buttonProps = {
onClick: onClick,
icon: ,
};
break;
case 'move-button':
buttonProps = {
onClick: onClick,
icon: ,
};
break;
case 'edit-button':
if (isExpand) {
buttonProps = {
onClick: onCancel,
icon: ,
};
break;
}
buttonProps = {
onClick: onClick,
icon: ,
};
break;
case 'add-button':
buttonProps = {
onClick: onClick,
icon: ,
};
break;
case 'save-button':
buttonProps = {
onClick: onClick,
icon: ,
};
break;
case 'expand-all-button':
if (isExpand) {
buttonProps = {
onClick: onCancel,
icon: ,
};
break;
}
buttonProps = {
onClick: onClick,
icon: ,
};
break;
default:
buttonProps = {
onClick: onClick,
icon: ,
};
break;
}
return (
);
};
export default ButtonWithIcon;