//#region src/components/PisellCards/components/GraphicTextCard/utils/index.ts
/**
* 获取图形区域的默认尺寸
* 根据样式变体和尺寸返回对应的默认宽高
* 
* @param variant - 样式变体
* @param size - 尺寸
* @returns 默认的宽度和高度
* 
* @example
* ```ts
* const size = getDefaultGraphicSize('vertical-image', 'default');
* // 返回 { width: 36, height: 36 }
* ```
*/
const getDefaultGraphicSize = (variant, size) => {
	if (variant === "vertical-image" || variant === "vertical-icon") return {
		small: {
			width: 28,
			height: 28
		},
		default: {
			width: 36,
			height: 36
		},
		large: {
			width: 44,
			height: 44
		}
	}[size];
	if (variant === "horizontal") return {
		small: {
			width: 48,
			height: 40
		},
		default: {
			width: 64,
			height: 52
		},
		large: {
			width: 80,
			height: 64
		}
	}[size];
	if (variant === "card") return {
		small: {
			width: 56,
			height: 56
		},
		default: {
			width: 72,
			height: 60
		},
		large: {
			width: 88,
			height: 72
		}
	}[size];
	return {
		width: 36,
		height: 36
	};
};
//#endregion
export { getDefaultGraphicSize };
