import { fromEntries } from "./../ricos-content/lib/utils.js";
import { isAlwaysVisible } from "./../_shared/resolvers/is-always-visible.js";
const toResolvedAttributes = (button, options) => {
  const resolvedAttributes = Object.entries(button.attributes || {}).map(([key, value]) => {
    return [key, value];
  });
  if (options?.disabled) {
    resolvedAttributes.push(["disabled", isAlwaysVisible]);
  }
  return fromEntries(resolvedAttributes);
};
export {
  toResolvedAttributes
};
//# sourceMappingURL=to-resolved-attributes.js.map
