/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

require("../../../_virtual/_rolldown/runtime.js");
let _carbon_layout = require("@carbon/layout");
//#region src/components/DataSpreadsheet/utils/getCellSize.js
/**
* Copyright IBM Corp. 2022, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const getSizeInPixels = (carbonSize) => Number(carbonSize.replace("rem", "") * _carbon_layout.baseFontSize);
const getCellSize = (cellSize) => {
	switch (cellSize) {
		case "xs": return getSizeInPixels(_carbon_layout.sizeXSmall);
		case "sm": return getSizeInPixels(_carbon_layout.sizeSmall);
		case "md": return getSizeInPixels(_carbon_layout.sizeMedium);
		case "lg": return getSizeInPixels(_carbon_layout.sizeLarge);
		default: return getSizeInPixels(_carbon_layout.sizeSmall);
	}
};
//#endregion
exports.getCellSize = getCellSize;
