Better fallbacks

This commit is contained in:
Lim Chee Aun 2024-04-03 17:57:15 +08:00
parent 36d8b62e1e
commit b10e22a9a2

View file

@ -1,9 +1,11 @@
export default function CustomEmoji({ staticUrl, alt, url }) {
return (
<picture>
<source srcset={staticUrl} media="(prefers-reduced-motion: reduce)" />
{staticUrl && (
<source srcset={staticUrl} media="(prefers-reduced-motion: reduce)" />
)}
<img
key={alt}
key={alt || url}
src={url}
alt={alt}
class="shortcode-emoji emoji"