"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkYPB3YRAGcjs = require('./chunk-YPB3YRAG.cjs');


var _chunkDDGSFIWAcjs = require('./chunk-DDGSFIWA.cjs');


var _chunkWF7Z2VITcjs = require('./chunk-WF7Z2VIT.cjs');



var _chunkZ6EUSUADcjs = require('./chunk-Z6EUSUAD.cjs');

// src/components/TextIconAligner.tsx
var _jsxruntime = require('@emotion/react/jsx-runtime');
function TextIconAligner({
  content: contentProp,
  typography: typographyProp,
  rightIcon,
  leftIcon,
  onClick
}) {
  const defaultTypography = {
    type: (typographyProp == null ? void 0 : typographyProp.type) || "Body",
    size: (typographyProp == null ? void 0 : typographyProp.size) || "Small",
    color: (typographyProp == null ? void 0 : typographyProp.color) || "text"
  };
  const nodesWithTypography = _chunkYPB3YRAGcjs.setDefaultReactNodesTypography.call(void 0, contentProp, {
    default: defaultTypography,
    link: _chunkZ6EUSUADcjs.__spreadProps.call(void 0, _chunkZ6EUSUADcjs.__spreadValues.call(void 0, {}, defaultTypography), { color: "link" })
  });
  const content = _chunkDDGSFIWAcjs.toReactNodes.call(void 0, nodesWithTypography);
  const leftIconNode = leftIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
    _chunkWF7Z2VITcjs.Icon,
    {
      name: leftIcon.name,
      width: leftIcon.width ? leftIcon.width : 12,
      mr: leftIcon.mr || 6,
      color: leftIcon.color
    }
  ) : null;
  const rightIconNode = rightIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
    _chunkWF7Z2VITcjs.Icon,
    {
      name: rightIcon.name,
      width: rightIcon.width ? rightIcon.width : 12,
      ml: rightIcon.ml || 6,
      color: rightIcon.color
    }
  ) : null;
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, 
    "span",
    {
      css: {
        cursor: onClick ? "pointer" : "inherit",
        display: "inline-flex",
        alignItems: "center"
      },
      onClick,
      children: [
        leftIconNode,
        content,
        rightIconNode
      ]
    }
  );
}



exports.TextIconAligner = TextIconAligner;
