import t,{useCallback as e}from"react";import r from"../../../Avatar/Avatar.js";import o from"../../../Text/Text.js";import a from"./ChildrenContent.module.scss.js";import{getTestId as n}from"../../../../tests/testIds.js";import{ComponentDefaultTestId as i}from"../../../../tests/constants.js";import s from"../../../../../components/icon/dist/Icon/Icon.js";var c=function(c){var l=c.data,m=c.children,u=c.readOnly,d=e((function(t){u&&t.stopPropagation()}),[u]);return t.createElement("div",{className:a.valueContainer,onMouseDown:d,"data-testid":n(i.DROPDOWN_OPTION_CONTENT)},(null==l?void 0:l.leftRenderer)||t.createElement(t.Fragment,null,(null==l?void 0:l.leftAvatar)&&t.createElement(r,{className:a.avatar,withoutBorder:!0,square:l.square,src:l.leftAvatar,type:"img",customSize:20}),(null==l?void 0:l.leftIcon)&&t.createElement(s,{className:a.icon,iconSize:18,icon:l.leftIcon})),t.createElement(o,{type:o.types.TEXT2,color:o.colors.INHERIT},m),(null==l?void 0:l.rightIcon)&&t.createElement(s,{iconSize:18,icon:l.rightIcon}),(null==l?void 0:l.rightAvatar)&&t.createElement(r,{withoutBorder:!0,square:l.square,src:l.rightAvatar,type:"img",customSize:20}))};export{c as ChildrenContent};
//# sourceMappingURL=ChildrenContent.js.map
