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