24 lines
488 B
JavaScript
24 lines
488 B
JavaScript
|
/**
|
||
|
* External dependencies
|
||
|
*/
|
||
|
import { __ } from '@wordpress/i18n';
|
||
|
|
||
|
/**
|
||
|
* Internal dependencies
|
||
|
*/
|
||
|
import OrdersPanel from './orders';
|
||
|
|
||
|
export function getAllPanels( { countUnreadOrders } ) {
|
||
|
return [
|
||
|
{
|
||
|
className: 'woocommerce-homescreen-card',
|
||
|
count: countUnreadOrders,
|
||
|
id: 'orders-panel',
|
||
|
initialOpen: true,
|
||
|
panel: <OrdersPanel countUnreadOrders={ countUnreadOrders } />,
|
||
|
title: __( 'Orders', 'woocommerce-admin' ),
|
||
|
},
|
||
|
// Add another panel row here
|
||
|
];
|
||
|
}
|