File size: 446 Bytes
d530f14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { JSXElementConstructor } from "react";
import Image from "next/image";

export const SourceIcon = ({ id }: { id: string }) => {
  return (
    <div className="relative">
      <div className="">
        {id && (
          <Image
            alt={id}
            width={36}
            height={36}
            className="h-10 w-10 aspect-square"
            src={`/icons/${id}.svg`}
          />
        )}
      </div>
    </div>
  );
};