import { LucideIcon } from "lucide-react"; import { ComponentPropsWithoutRef, forwardRef } from "react"; import { Button as BaseButton } from "react-daisyui"; import { Link } from "react-router-dom"; type ButtonProps = ComponentPropsWithoutRef & { href?: string; target?: "_blank" | "_self" | "_parent" | "_top"; icon?: LucideIcon; }; const Button = forwardRef( ({ href, children, icon: Icon, shape, ...props }, ref) => { return ( {Icon ? : null} {children} ); } ); export default Button;