import { backgroundColors, backgroundHoverColors, textColors, } from "../consts/buttonColors"; import { ButtonType } from "../types/button"; interface ButtonProps { buttonType?: ButtonType; icon?: React.ReactNode; text?: string; className?: string; onClick?: () => void; } const Button = ({ className, icon, text, buttonType = "primary", onClick, }: ButtonProps) => { const backgroundColor = backgroundColors[buttonType]; const backgroundHoverColor = backgroundHoverColors[buttonType]; const textColor = textColors[buttonType]; return ( ); }; export default Button;