import { backgroundColors, textColors, borders, paddings, } from "../consts/buttonStyles"; 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 textColor = textColors[buttonType]; const border = borders[buttonType]; const padding = paddings[buttonType]; return ( ); }; export default Button;