mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
18 lines
459 B
TypeScript
18 lines
459 B
TypeScript
import { Link } from "@nextui-org/react";
|
|
import { ReactNode } from "react";
|
|
|
|
interface IconLinkProps {
|
|
icon: ReactNode;
|
|
href: string;
|
|
}
|
|
|
|
export default function IconLink({ icon, href }: IconLinkProps) {
|
|
return (
|
|
<Link
|
|
href={href}
|
|
className="text-[#333] dark:text-white flex justify-center duration-500 ease-in-out transition-all transform hover:scale-125 duration-500 ease-in-out transition-color"
|
|
>
|
|
{icon}
|
|
</Link>
|
|
);
|
|
}
|