export const PRODUCT_TABLE_NAMESPACE = 'woocommerce_product_table';

export type ProductTableTemplateKey =
	| 'minimal'
	| 'classic'
	| 'compact'
	| 'invoice_bold'
	| 'modern_zebra';

export type ProductTableTemplateSettings = {
	template: ProductTableTemplateKey;
	/** When set, overrides the template default header background (toolbar). */
	headerBackgroundColor?: string;
	/** When set, overrides the template default header text color (toolbar). */
	headerTextColor?: string;
	columns: {
		showProductName: boolean;
		showQuantity: boolean;
		showUnitPrice: boolean;
		showLineTotal: boolean;
		showSku: boolean;
		showThumbnail: boolean;
	};
	textStyle?: {
		fontFamily?: string;
		fontWeight?: string | number;
		color?: string;
		textAlign?: 'left' | 'center' | 'right';
	};
};

export const DEFAULT_PRODUCT_TABLE_TEMPLATE_SETTINGS: ProductTableTemplateSettings =
	{
		template: 'minimal',
		columns: {
			showProductName: true,
			showQuantity: true,
			showUnitPrice: true,
			showLineTotal: true,
			showSku: false,
			showThumbnail: false,
		},
		textStyle: undefined,
	};

