eny.space Landingpage
at develop 29 lines 611 B view raw
1import Link from "next/link"; 2import { cn } from "@/actions/lib/utils"; 3 4interface ButtonLinkProps { 5 href: string; 6 children: React.ReactNode; 7 className?: string; 8 endIcon?: React.ReactNode; 9} 10 11export function ButtonLink({ 12 href, 13 children, 14 className, 15 endIcon, 16}: ButtonLinkProps) { 17 return ( 18 <Link 19 href={href} 20 className={cn( 21 "inline-flex h-11 items-center justify-center gap-2 rounded-full px-5 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2", 22 className 23 )} 24 > 25 {children} 26 {endIcon} 27 </Link> 28 ); 29}