import { __ } from '@wordpress/i18n';

const ENTITY_META = {
	orders: { label: __( 'Orders', 'rawtype-order-exporter-woocommerce' ), icon: 'archive' },
	products: { label: __( 'Products', 'rawtype-order-exporter-woocommerce' ), icon: 'tag' },
	customers: { label: __( 'Customers', 'rawtype-order-exporter-woocommerce' ), icon: 'groups' },
	'cross-entity': { label: __( 'Cross-Entity', 'rawtype-order-exporter-woocommerce' ), icon: 'networking' },
};

export const MULTISHEET_CONFIG = {
	orders: {
		modes: [ 'single', 'by_group' ],
		groupFields: [
			{ value: 'status', label: __( 'Status', 'rawtype-order-exporter-woocommerce' ) },
			{ value: 'payment_method', label: __( 'Payment method', 'rawtype-order-exporter-woocommerce' ) },
			{ value: 'billing_country', label: __( 'Billing country', 'rawtype-order-exporter-woocommerce' ) },
		],
	},
	products: {
		modes: [ 'single', 'by_group' ],
		groupFields: [
			{ value: 'status', label: __( 'Status', 'rawtype-order-exporter-woocommerce' ) },
			{ value: 'categories', label: __( 'Category', 'rawtype-order-exporter-woocommerce' ) },
			{ value: 'type', label: __( 'Product type', 'rawtype-order-exporter-woocommerce' ) },
		],
	},
	customers: {
		modes: [ 'single', 'by_group' ],
		groupFields: [
			{ value: 'role', label: __( 'Role', 'rawtype-order-exporter-woocommerce' ) },
			{ value: 'billing_country', label: __( 'Country', 'rawtype-order-exporter-woocommerce' ) },
		],
	},
};

export default ENTITY_META;
