1 import { c } from 'ttag';
3 import UnderlineButton from '@proton/components/components/button/UnderlineButton';
4 import noResultsImg from '@proton/styles/assets/img/illustrations/empty-search.svg';
8 onClearSearch: () => void;
11 const ContactSelectorEmptyResults = ({ query = '', onClearSearch }: Props) => {
12 const title = c('Error message').t`No results found for "${query}"`;
14 <UnderlineButton key="button" className="text-bold p-0" onClick={onClearSearch}>
15 {c('Action').t`clear it`}
20 <div className="flex flex-column items-center flex-1 p-2">
22 <img src={noResultsImg} alt={title} className="px-4 pb-4 mb-4" />
23 <span>{c('Info').jt`You can either update your search query or ${button}`}</span>
27 export default ContactSelectorEmptyResults;