mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
25 lines
639 B
TypeScript
25 lines
639 B
TypeScript
import { Button, Link } from "@nextui-org/react";
|
|
import { ReactNode } from "react";
|
|
|
|
interface ButtonLinkProps {
|
|
icon?: ReactNode;
|
|
href: string;
|
|
name: string;
|
|
}
|
|
|
|
export default function ButtonLink({ icon, href, name }: ButtonLinkProps) {
|
|
return (
|
|
<Link
|
|
href={href}
|
|
className="text-white flex justify-center duration-500 ease-in-out transition-all transform hover:scale-110 ease-in-out"
|
|
>
|
|
<Button
|
|
endContent={icon}
|
|
className="text-white border-white/50 transition-all transform duration-500 ease-in-out"
|
|
variant="bordered"
|
|
>
|
|
{name}
|
|
</Button>
|
|
</Link>
|
|
);
|
|
}
|