2020-11-06 01:21:05 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import OrdersPanel from './orders';
|
|
|
|
|
2020-11-06 16:50:24 +00:00
|
|
|
export function getAllPanels( { countUnreadOrders, orderStatuses } ) {
|
2020-11-06 01:21:05 +00:00
|
|
|
return [
|
|
|
|
{
|
|
|
|
className: 'woocommerce-homescreen-card',
|
|
|
|
count: countUnreadOrders,
|
|
|
|
id: 'orders-panel',
|
|
|
|
initialOpen: true,
|
2020-11-06 16:50:24 +00:00
|
|
|
panel: (
|
|
|
|
<OrdersPanel
|
|
|
|
countUnreadOrders={ countUnreadOrders }
|
|
|
|
orderStatuses={ orderStatuses }
|
|
|
|
/>
|
|
|
|
),
|
2020-11-06 01:21:05 +00:00
|
|
|
title: __( 'Orders', 'woocommerce-admin' ),
|
|
|
|
},
|
|
|
|
// Add another panel row here
|
|
|
|
];
|
|
|
|
}
|