mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-25 11:48:14 +03:00
18 lines
386 B
React
18 lines
386 B
React
|
export default function CustomEmoji({ staticUrl, alt, url }) {
|
||
|
return (
|
||
|
<picture>
|
||
|
<source srcset={staticUrl} media="(prefers-reduced-motion: reduce)" />
|
||
|
<img
|
||
|
key={alt}
|
||
|
src={url}
|
||
|
alt={alt}
|
||
|
class="shortcode-emoji emoji"
|
||
|
width="16"
|
||
|
height="16"
|
||
|
loading="lazy"
|
||
|
decoding="async"
|
||
|
/>
|
||
|
</picture>
|
||
|
);
|
||
|
}
|