mattermost-mobile/app/components/custom_status/custom_status_emoji.tsx
Daniel Espino García a8ee3a1b5a
Fix and unify channel and user list items (#7175)
* Fix channel and user list items

* Fixes on members and create a dm lists

* Fix tutorial and ipad

* Fix test

* Address feedback

* Several fixes on Android

* Fix tests

* Address feedback

* Add more non breaking strings

---------

Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
2023-04-19 10:13:14 +02:00

31 lines
780 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import Emoji from '@components/emoji';
import type {EmojiCommonStyle} from '@typings/components/emoji';
import type {StyleProp} from 'react-native';
interface ComponentProps {
customStatus: UserCustomStatus;
emojiSize?: number;
style?: StyleProp<EmojiCommonStyle>;
}
const CustomStatusEmoji = ({customStatus, emojiSize = 16, style}: ComponentProps) => {
if (customStatus.emoji) {
return (
<Emoji
size={emojiSize}
emojiName={customStatus.emoji}
commonStyle={style}
/>
);
}
return null;
};
export default CustomStatusEmoji;