feat: ship creator journey v2 and profile updates
This commit is contained in:
19
resources/js/components/common/extractNativeEmoji.js
Normal file
19
resources/js/components/common/extractNativeEmoji.js
Normal file
@@ -0,0 +1,19 @@
|
||||
export default function extractNativeEmoji(selection) {
|
||||
if (typeof selection === 'string') {
|
||||
return selection
|
||||
}
|
||||
|
||||
const detail = selection?.detail ?? null
|
||||
|
||||
return (
|
||||
selection?.native
|
||||
?? selection?.emoji
|
||||
?? selection?.unicode
|
||||
?? selection?.skins?.[0]?.native
|
||||
?? detail?.native
|
||||
?? detail?.emoji
|
||||
?? detail?.unicode
|
||||
?? detail?.skins?.[0]?.native
|
||||
?? ''
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user