feat: use animated emojis from fluent

This commit is contained in:
2023-08-09 15:20:14 +02:00
parent 95525406d1
commit 5e64edef7f
23 changed files with 53 additions and 17 deletions

14
components/Emoji.tsx Normal file
View File

@@ -0,0 +1,14 @@
import { asset } from "$fresh/runtime.ts";
export const Emoji = (props: { class?: string; name: string }) => {
return props.name
? props.name.endsWith(".png")
? (
<img
class={`${props?.class || ""}`}
src={asset(`/emojis/${props.name}`)}
/>
)
: <span>{props.name}</span>
: <></>;
};