2019-07-29 16:33:28 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import Header from './Header';
|
2021-12-02 13:39:48 +00:00
|
|
|
import { IShareListHeader } from './interface';
|
2019-07-29 16:33:28 +00:00
|
|
|
|
2021-12-02 13:39:48 +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;
|