import { _sanitizeSymbol } from "@dynatrace/strato-components-preview/core";
import { attachImageFromShape } from "./attach-image-from-shape.js";
import { attachImageFromText } from "./attach-image-from-text.js";
import { isValidShape } from "./is-valid-shape.js";
const attachImageFromString = (map, shape, suffix = "", outputSize) => {
  const isShape = isValidShape(shape);
  const name = isShape ? `${shape}-${suffix}` : `emoji-${suffix}`;
  if (isShape) {
    attachImageFromShape(map, shape, name, outputSize);
  } else {
    const sanitizedShape = _sanitizeSymbol(shape);
    attachImageFromText(map, sanitizedShape, name, outputSize);
  }
};
export {
  attachImageFromString
};
//# sourceMappingURL=attach-image-from-string.js.map
