import React from 'react' import { Link } from 'react-router-dom' function Button({ warn, link, text, icon, onClick, type, children, active, alt, disabled, className: classToUse, upper, target, rel }: { warn?: boolean, upper?: boolean, className?: string, text?: string, icon?: string, type?: "submit" | "reset" | "button", link?: string, onClick?: (e: any) => void, children?: React.ReactNode, active?: boolean, alt?: boolean, disabled?: boolean, target?: string, rel?: string }) { const className = `${classToUse || ''} ${warn ? 'warn' : ''} ${active ? 'active' : ''} ${alt ? 'alt' : ''} ${disabled ? 'disabled' : ''} flex gap-2` const button = if (link) { return {button} } return button } export default Button