diff --git a/web/avatars/edit-user-avatar-menu.react.js b/web/avatars/edit-user-avatar-menu.react.js new file mode 100644 index 000000000..411ff1f41 --- /dev/null +++ b/web/avatars/edit-user-avatar-menu.react.js @@ -0,0 +1,34 @@ +// @flow + +import * as React from 'react'; + +import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; + +import MenuItem from '../components/menu-item.react.js'; +import Menu from '../components/menu.react.js'; + +const editIcon = ; + +function EditUserAvatarMenu(): React.Node { + const emojiMenuItem = React.useMemo( + () => , + [], + ); + const imageMenuItem = React.useMemo( + () => , + [], + ); + const removeMenuItem = React.useMemo( + () => , + [], + ); + + const menuItems = React.useMemo( + () => [emojiMenuItem, imageMenuItem, removeMenuItem], + [emojiMenuItem, imageMenuItem, removeMenuItem], + ); + + return {menuItems}; +} + +export default EditUserAvatarMenu; diff --git a/web/avatars/edit-user-avatar.react.js b/web/avatars/edit-user-avatar.react.js index ccf44b9df..35da8cc7e 100644 --- a/web/avatars/edit-user-avatar.react.js +++ b/web/avatars/edit-user-avatar.react.js @@ -1,26 +1,26 @@ // @flow import * as React from 'react'; -import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; - +import EditUserAvatarMenu from './edit-user-avatar-menu.react.js'; import css from './edit-user-avatar.css'; import UserAvatar from './user-avatar.react.js'; type Props = { +userID: ?string, +disabled?: boolean, }; function EditUserAvatar(props: Props): React.Node { const { userID } = props; + return (
- +
); } export default EditUserAvatar;