import React from "react"; import { overrideTailwindClasses } from "tailwind-override"; export type ButtonProps = { children: JSX.Element; disabled?: boolean; customColor?: string; loading?: boolean; fullWidth?: boolean; className?: string; component?: Element | string; }; function Button({ children, disabled, loading, fullWidth, className = "", component = "button", ...rest }: ButtonProps) { let customClasses = " "; if (loading) customClasses += " loading text-gray-300"; if (fullWidth) customClasses += " w-full"; const Component: any = component; return ( {children} ); } export default Button;