import React from 'react'; import { StyleSheet, View } from 'react-native'; import { CommandVariants } from 'stream-chat'; import { useTheme } from '../../contexts/themeContext/ThemeContext'; import { Flag, GiphyIcon, Mute, Sound, UserAdd, UserDelete } from '../../icons'; import { Lightning } from '../../icons/bolt'; import { Imgur } from '../../icons/imgur'; export const SuggestionCommandIcon = ({ name }: { name: CommandVariants }) => { const { theme: { semantics }, } = useTheme(); if (name === 'ban') { return ; } else if (name === 'flag') { return ; } else if (name === 'giphy') { return ; } else if (name === 'imgur') { return ; } else if (name === 'mute') { return ; } else if (name === 'unban') { return ; } else if (name === 'unmute') { return ; } else { return ; } }; export const AutoCompleteSuggestionCommandIcon = ({ name }: { name: CommandVariants }) => { const { theme: { messageComposer: { suggestions: { command: { iconContainer }, }, }, }, } = useTheme(); return ( ); }; const styles = StyleSheet.create({ iconContainer: { alignItems: 'center', borderRadius: 12, height: 24, justifyContent: 'center', marginRight: 8, width: 24, }, });