From 4df5503f3e06761a7096324f8e093ab4c1afefa7 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 23 Sep 2022 13:14:11 +0300 Subject: feat: add emoji plugin --- src/Emoji.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Emoji.tsx (limited to 'src/Emoji.tsx') diff --git a/src/Emoji.tsx b/src/Emoji.tsx new file mode 100644 index 0000000..b928087 --- /dev/null +++ b/src/Emoji.tsx @@ -0,0 +1,19 @@ +import { FC } from 'react'; +import Image from 'next/future/image'; + +interface Props { + children: string[]; +} + +const Emoji: FC = ({ children }) => { + const src = children[0]; + return ( + {`${src}-emoji`} + ); +} + +export default Emoji; -- cgit v1.2.3