verdnatura-chat/app/views/ShareListView/Header/index.tsx

23 lines
532 B
TypeScript
Raw Permalink Normal View History

2019-07-29 16:33:28 +00:00
import React from 'react';
import Header from './Header';
import { IShareListHeader } from './interface';
2019-07-29 16:33:28 +00:00
const ShareListHeader = React.memo(({ searching, initSearch, cancelSearch, onChangeSearchText, theme }: IShareListHeader) => {
const onSearchChangeText = (text: string) => {
onChangeSearchText(text.trim());
2019-07-29 16:33:28 +00:00
};
return (
<Header
2019-12-04 16:39:53 +00:00
theme={theme}
2019-07-29 16:33:28 +00:00
searching={searching}
initSearch={initSearch}
cancelSearch={cancelSearch}
onChangeSearchText={onSearchChangeText}
/>
);
});
export default ShareListHeader;