Remove shallow prop from Wrapper (#36275)

This commit is contained in:
Brad Dunbar 2025-09-29 05:10:27 -04:00 committed by GitHub
parent a44a3f6d40
commit aae9a5528a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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