import { FC } from 'react';
import Image from 'next/future/image';

interface Props {
  children: string[];
}

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

export default Emoji;
