import React from 'react'; import { View } from 'react-native'; import { Avatar, Box, Icon, Text, createStyleSheet, useUIKitTheme } from '@sendbird/uikit-react-native-foundation'; import { conditionChaining } from '@sendbird/uikit-utils'; type Props = { uri: string; name: string; selected: boolean; disabled: boolean; }; const UserSelectableBar = ({ uri, name, selected, disabled }: Props) => { const { colors } = useUIKitTheme(); const iconColor = conditionChaining( [disabled, selected], [colors.onBackground04, colors.primary, colors.onBackground03], ); return ( {name} ); }; const styles = createStyleSheet({ container: { flexDirection: 'row', alignItems: 'center', width: '100%', height: 56, paddingHorizontal: 16, }, avatar: { marginEnd: 16, }, infoContainer: { height: '100%', flex: 1, alignItems: 'center', flexDirection: 'row', borderBottomWidth: 1, }, name: { marginEnd: 8, }, }); export default UserSelectableBar;