blob: 883b783c819945de3b65bbf32bd841c359c47108 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import Modal from '@components/molecules/modals/modal';
import { VFC } from 'react';
import { useIntl } from 'react-intl';
import SearchForm from '../forms/search-form';
import styles from './search-modal.module.scss';
export type SearchModalProps = {
/**
* Set additional classnames to modal wrapper.
*/
className?: string;
};
/**
* SearchModal
*
* Render a search form modal.
*/
const SearchModal: VFC<SearchModalProps> = ({ className }) => {
const intl = useIntl();
const modalTitle = intl.formatMessage({
defaultMessage: 'Search',
description: 'SearchModal: modal title',
id: 'G+Twgm',
});
return (
<Modal title={modalTitle} className={`${styles.wrapper} ${className}`}>
<SearchForm hideLabel={true} />
</Modal>
);
};
export default SearchModal;
|