"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("../../node_modules/@fortawesome/react-fontawesome/index.es.js"),t=require("../../node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js");require("../../node_modules/react-redux/es/index.js");var o=require("../../node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js"),n=require("../../node_modules/react-redux/es/hooks/useSelector.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),a={open:{width:"56px",height:"56px",borderRadius:"26px"},closed:{width:"24px",height:"24px",borderRadius:"26px"}};exports.Avatar=function(i){var u=i.type,d=n.useSelector((function(e){return e.island})).isOpen,l=e.useMemo((function(){switch(u){case"announcement":return t.faBullhorn;case"call_recording":return t.faVoicemail;case"ringtone_preview":return t.faBell;default:return t.faMusic}}),[u]);return s.default.createElement(o.motion.div,{animate:d?"open":"closed",variants:a,className:"pi-w-12 pi-h-12 pi-bg-secondaryNeutral dark:pi-bg-secondaryNeutralDark pi-rounded-xl pi-flex pi-items-center pi-justify-center pi-flex-shrink-0 pi-flex-grow-0"},s.default.createElement(r.FontAwesomeIcon,{size:d?"2xl":"lg",icon:l,className:"pi-text-gray-50 dark:pi-text-gray-50"}))};
//# sourceMappingURL=Avatar.js.map
