diff --git a/web/settings/relationship/add-users-list-modal.react.js b/web/settings/relationship/add-users-list-modal.react.js new file mode 100644 --- /dev/null +++ b/web/settings/relationship/add-users-list-modal.react.js @@ -0,0 +1,55 @@ +// @flow + +import * as React from 'react'; + +import type { + UserRelationshipStatus, + RelationshipAction, +} from 'lib/types/relationship-types.js'; + +import SearchModal from '../../modals/search-modal.react'; +import AddUsersList from './add-users-list.react.js'; + +type Props = { + +closeModal: () => void, + +name: string, + +excludedStatuses: $ReadOnlySet, + +confirmButtonLabel: string, + +relationshipAction: RelationshipAction, +}; + +function AddUsersListModal(props: Props): React.Node { + const { + closeModal, + name, + excludedStatuses, + confirmButtonLabel, + relationshipAction, + } = props; + + const addUsersListChildGenerator = React.useCallback( + (searchText: string) => ( + + ), + [confirmButtonLabel, excludedStatuses, closeModal, relationshipAction], + ); + + return ( + + {addUsersListChildGenerator} + + ); +} + +export default AddUsersListModal;