import React from 'react';
import { View, Text } from 'react-native';
import sharedStyles from '../../../../views/Styles';
import { IAutocompleteCannedResponse } from '../../interfaces';
import I18n from '../../../../i18n';
import { CustomIcon } from '../../../CustomIcon';
import { NO_CANNED_RESPONSES } from '../../constants';
import { useStyle } from './styles';
export const AutocompleteCannedResponse = ({ item }: { item: IAutocompleteCannedResponse }) => {
const [styles, colors] = useStyle();
if (item.id === NO_CANNED_RESPONSES) {
return (
{I18n.t('No_match_found')} {I18n.t('Check_canned_responses')}
);
}
return (
{item.title}
{item.subtitle ? (
{item.subtitle}
) : null}
);
};