import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { Icon, Input } from 'soapbox/components/ui'; const messages = defineMessages({ searchPlaceholder: { id: 'chats.search_placeholder', defaultMessage: 'Search inbox' }, }); interface IChatSearchInput { /** Search term. */ value: string, /** Callback when the search value changes. */ onChange: React.ChangeEventHandler, /** Callback when the input is cleared. */ onClear: React.MouseEventHandler, } /** Search input for filtering chats. */ const ChatSearchInput: React.FC = ({ value, onChange, onClear }) => { const intl = useIntl(); return (