mattermost-mobile/app/components/chips/selected_user_chip.tsx
Daniel Espino García 1c0e201edf
Refactor chips (#8740)
* Refactor chips

* Fix tsc

* Rename showXButton
2025-04-08 10:14:01 +02:00

33 lines
784 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import UserChip from './user_chip';
import type UserModel from '@typings/database/models/servers/user';
type SelectedChipProps = {
user: UserModel | UserProfile;
onPress: (id: string) => void;
testID?: string;
teammateNameDisplay: string;
}
export default function SelectedUserChip({
testID,
user,
teammateNameDisplay,
onPress,
}: SelectedChipProps) {
return (
<UserChip
testID={testID}
onPress={onPress}
showRemoveOption={true}
showAnimation={true}
teammateNameDisplay={teammateNameDisplay}
user={user}
/>
);
}