/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
const require_getButtonControlHeight = require("./getButtonControlHeight.cjs");
//#region ../tailwind-internal/dist/packages/automated-config/dist/utils/iconButtonMatchButtonHeight.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */
function asMatchButtonHeightConfig(config) {
	return config;
}
function getMatchButtonHeightMap(config) {
	return config.iconButton?.matchButtonHeight ?? config.matchButtonHeight;
}
function isMatchButtonHeightSize(size) {
	return require_getButtonControlHeight.SHARED_BUTTON_ICONBUTTON_SIZES.has(size);
}
function isIconButtonMatchButtonHeightEnabled(config, size) {
	if (!isMatchButtonHeightSize(size)) return false;
	return getMatchButtonHeightMap(asMatchButtonHeightConfig(config))?.[size] === true;
}
//#endregion
exports.isIconButtonMatchButtonHeightEnabled = isIconButtonMatchButtonHeightEnabled;
