// @flow import * as React from 'react'; import { inject, observer } from 'mobx-react'; import { PlusIcon } from 'outline-icons'; import Flex from 'shared/components/Flex'; import HelpText from 'components/HelpText'; import Subheading from 'components/Subheading'; import Button from 'components/Button'; import PaginatedMembersList from './components/PaginatedMembersList'; import Collection from 'models/Collection'; import AuthStore from 'stores/AuthStore'; type Props = { auth: AuthStore, collection: Collection, }; @observer class CollectionMembers extends React.Component { handleAddPeople = () => { // TODO }; render() { const { collection, auth } = this.props; const { user } = auth; if (!user) return null; return ( {collection.private ? ( Choose which team members have access to view and edit documents in the private {collection.name} collection. You can make this collection visible to the entire team by changing its visibility. ) : ( The {collection.name} collection is accessible by everyone on the team. If you want to limit who can view the collection, make it private. )} Members ); } } export default inject('auth')(CollectionMembers);