File size: 442 Bytes
246d201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { cn } from "#/utils/utils";

interface ThumbnailProps {
  src: string;
  size?: "small" | "large";
}

export function Thumbnail({ src, size = "small" }: ThumbnailProps) {
  return (
    <img

      role="img"

      alt=""

      src={src}

      className={cn(

        "rounded object-cover",

        size === "small" && "w-[62px] h-[62px]",

        size === "large" && "w-[100px] h-[100px]",

      )}

    />
  );
}