2024-03-25 17:58:56 +08:00
|
|
|
export default function CustomEmoji({ staticUrl, alt, url }) {
|
|
|
|
return (
|
|
|
|
<picture>
|
2024-04-03 17:57:15 +08:00
|
|
|
{staticUrl && (
|
|
|
|
<source srcset={staticUrl} media="(prefers-reduced-motion: reduce)" />
|
|
|
|
)}
|
2024-03-25 17:58:56 +08:00
|
|
|
<img
|
2024-04-03 17:57:15 +08:00
|
|
|
key={alt || url}
|
2024-03-25 17:58:56 +08:00
|
|
|
src={url}
|
|
|
|
alt={alt}
|
|
|
|
class="shortcode-emoji emoji"
|
|
|
|
width="16"
|
|
|
|
height="16"
|
|
|
|
loading="lazy"
|
|
|
|
decoding="async"
|
|
|
|
/>
|
|
|
|
</picture>
|
|
|
|
);
|
|
|
|
}
|