lbry-desktop/ui/modal/modalMobileSearch/view.jsx

29 lines
769 B
React
Raw Normal View History

2020-12-11 19:33:27 +01:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import WunderbarSuggestions from 'component/wunderbarSuggestions';
type Props = {
closeModal: () => void,
2021-06-16 04:27:58 +02:00
channelsOnly?: boolean,
noTopSuggestion?: boolean,
noBottomLinks?: boolean,
customSelectAction?: (string) => void,
2020-12-11 19:33:27 +01:00
};
export default function ModalMobileSearch(props: Props) {
2021-06-16 04:27:58 +02:00
const { closeModal, channelsOnly, noTopSuggestion, noBottomLinks, customSelectAction } = props;
2020-12-11 19:33:27 +01:00
return (
<Modal onAborted={closeModal} isOpen type="card">
2021-06-16 04:27:58 +02:00
<WunderbarSuggestions
isMobile
channelsOnly={channelsOnly}
noTopSuggestion={noTopSuggestion}
noBottomLinks={noBottomLinks}
customSelectAction={customSelectAction}
/>
2020-12-11 19:33:27 +01:00
</Modal>
);
}