// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import React from "react"; import PropTypes from "prop-types"; import { AVATARS } from "../../constants"; const Avatars = ({ handleAvatarClick, currentAvatar }) => { return ( <> {AVATARS.map((avatar) => { const selected = avatar.name === currentAvatar ? " selected" : ""; return ( ); })} ); }; Avatars.propTypes = { currentAvatar: PropTypes.string, handleAvatarClick: PropTypes.func, }; export default Avatars;