1import { css } from '@emotion/react';
2
3type IconProps = {
4  title: string;
5  image?: string;
6  size?: number;
7};
8
9export const Icon = ({ title, image, size = 64 }: IconProps) => (
10  <img
11    className="rounded-full p-1 bg-element"
12    css={css({
13      width: size,
14      height: size,
15    })}
16    alt={title}
17    src={image}
18  />
19);
20