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 index 000000000..03ef6b637 --- /dev/null +++ b/web/settings/relationship/add-users-list-modal.react.js @@ -0,0 +1,65 @@ +// @flow + +import * as React from 'react'; + +import type { + UserRelationshipStatus, + RelationshipAction, +} from 'lib/types/relationship-types.js'; + +import type { ButtonVariant } from '../../components/button.react.js'; +import SearchModal from '../../modals/search-modal.react'; +import AddUsersList from './add-users-list.react.js'; + +type Props = { + +closeModal: () => void, + +name: string, + +excludedStatuses: $ReadOnlySet, + +confirmButtonContent: React.Node, + +confirmButtonVariant?: ButtonVariant, + +relationshipAction: RelationshipAction, +}; + +function AddUsersListModal(props: Props): React.Node { + const { + closeModal, + name, + excludedStatuses, + confirmButtonContent, + confirmButtonVariant = 'primary', + relationshipAction, + } = props; + + const addUsersListChildGenerator = React.useCallback( + (searchText: string) => ( + + ), + [ + excludedStatuses, + confirmButtonContent, + confirmButtonVariant, + relationshipAction, + closeModal, + ], + ); + + return ( + + {addUsersListChildGenerator} + + ); +} + +export default AddUsersListModal;