aboutsummaryrefslogtreecommitdiff
path: root/src/Emoji.tsx
blob: df5108d029e96ec723f16221d66edf2ff822184c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { FC } from 'react';
import Image from 'next/future/image';
import benzinConfig from './benzinConfig';

interface Props {
  children: string[];
}

const Emoji: FC<Props> = ({ children }) => {
  const src = children[0];
  return (
    <Image
      src={`${benzinConfig.CDN}/public/emoji/${src}`}
      width={16}
      alt={`${src}-emoji`}
    />
  );
}

export default Emoji;