[Glitch] Remove shallow prop from Wrapper

Port aae9a5528a1677177a65891a058870f2e763e176 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Brad Dunbar 2025-09-29 05:10:27 -04:00 committed by Claire
parent b6c53c1129
commit c4cd2c955b

View File

@ -51,7 +51,14 @@ export const EmojiHTML = <Element extends ElementType>(
if (isModernEmojiEnabled()) {
return <ModernEmojiHTML {...props} />;
}
const { as: asElement, htmlString, extraEmojis, className, ...rest } = props;
const {
as: asElement,
htmlString,
extraEmojis,
className,
shallow: _,
...rest
} = props;
const Wrapper = asElement ?? 'div';
return (
<Wrapper