import React from 'react'; import { View, Text } from 'react-native'; import { IAutocompleteSlashCommand } from '../../interfaces'; import I18n from '../../../../i18n'; import { useStyle } from './styles'; export const AutocompleteSlashCommand = ({ item }: { item: IAutocompleteSlashCommand }) => { const [styles] = useStyle(); return ( /{item.title} {item.subtitle ? ( {I18n.isTranslated(item.subtitle) ? I18n.t(item.subtitle) : item.subtitle} ) : null} ); };