2025-12-15 16:08:40 +03:30
|
|
|
import { Icon } from "@iconify/react";
|
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
|
|
|
|
interface LogoItemProps {
|
|
|
|
|
icon: string;
|
|
|
|
|
alt: string;
|
|
|
|
|
size?: "sm" | "md" | "lg";
|
|
|
|
|
className?: string;
|
2026-06-17 21:35:35 +03:30
|
|
|
iconClassName?: string;
|
2025-12-15 16:08:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-06-17 21:35:35 +03:30
|
|
|
const iconSizeMap = {
|
|
|
|
|
sm: "size-6",
|
|
|
|
|
md: "size-7",
|
|
|
|
|
lg: "size-8",
|
2025-12-15 16:08:40 +03:30
|
|
|
};
|
|
|
|
|
|
2026-06-17 21:35:35 +03:30
|
|
|
const tileSizeMap = {
|
|
|
|
|
sm: "size-12",
|
|
|
|
|
md: "size-14",
|
|
|
|
|
lg: "size-16",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export function LogoItem({
|
|
|
|
|
icon,
|
|
|
|
|
alt,
|
|
|
|
|
size = "md",
|
|
|
|
|
className,
|
|
|
|
|
iconClassName,
|
|
|
|
|
}: LogoItemProps) {
|
2025-12-15 16:08:40 +03:30
|
|
|
return (
|
2026-06-17 21:35:35 +03:30
|
|
|
<div className={cn("flex items-center justify-center", className)}>
|
|
|
|
|
<div
|
2025-12-15 16:08:40 +03:30
|
|
|
className={cn(
|
2026-06-17 21:35:35 +03:30
|
|
|
"flex items-center justify-center rounded-2xl border border-border/50 bg-white shadow-sm transition-all duration-300",
|
|
|
|
|
"hover:-translate-y-1 hover:shadow-md",
|
|
|
|
|
"dark:border-white/10 dark:bg-white/95 dark:shadow-lg dark:shadow-black/25",
|
|
|
|
|
tileSizeMap[size]
|
2025-12-15 16:08:40 +03:30
|
|
|
)}
|
2026-06-17 21:35:35 +03:30
|
|
|
>
|
|
|
|
|
<Icon
|
|
|
|
|
icon={icon}
|
|
|
|
|
className={cn("shrink-0", iconSizeMap[size], iconClassName)}
|
|
|
|
|
aria-label={alt}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-12-15 16:08:40 +03:30
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|