The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import { BlurImage } from "@dub/ui";
import { cn } from "@dub/utils";
import { memo } from "react";
export const IntegrationLogo = memo(
({
src,
alt,
className,
}: {
src: string | null;
alt: string;
className?: string;
}) => (
<div className={cn("relative size-8 shrink-0 rounded-md", className)}>
{src ? (
<>
<BlurImage
src={src}
alt={alt}
className="relative size-full rounded-[inherit]"
width={32}
height={32}
/>
<div className="pointer-events-none absolute inset-0 size-full rounded-[inherit] border border-black/[0.075]" />
</>
) : (
<div className="relative size-full rounded-[inherit]" />
)}
</div>
),
);