Jamjar/src/components/link-components/IconLink.tsx
2025-01-19 13:38:18 -05:00

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>
);
}