2024-10-28 15:44:27 +01:00
|
|
|
import { __ } from '@wordpress/i18n';
|
2024-11-19 16:09:40 +01:00
|
|
|
import TabOverview from './Overview/TabOverview';
|
|
|
|
import TabPaymentMethods from './Overview/TabPaymentMethods';
|
|
|
|
import TabSettings from './Overview/TabSettings';
|
|
|
|
import TabStyling from './Overview/TabStyling';
|
2024-10-28 15:44:27 +01:00
|
|
|
|
|
|
|
export const getSettingsTabs = () => {
|
|
|
|
const tabs = [];
|
|
|
|
|
2024-10-28 17:56:23 +01:00
|
|
|
tabs.push( {
|
2024-11-19 16:09:40 +01:00
|
|
|
name: 'overview',
|
|
|
|
title: __( 'Overview', 'woocommerce-paypal-payments' ),
|
|
|
|
component: <TabOverview />,
|
2024-10-28 17:56:23 +01:00
|
|
|
} );
|
|
|
|
|
|
|
|
tabs.push( {
|
|
|
|
name: 'payment-methods',
|
|
|
|
title: __( 'Payment Methods', 'woocommerce-paypal-payments' ),
|
|
|
|
component: <TabPaymentMethods />,
|
|
|
|
} );
|
|
|
|
|
|
|
|
tabs.push( {
|
|
|
|
name: 'settings',
|
|
|
|
title: __( 'Settings', 'woocommerce-paypal-payments' ),
|
|
|
|
component: <TabSettings />,
|
|
|
|
} );
|
|
|
|
|
|
|
|
tabs.push( {
|
|
|
|
name: 'styling',
|
|
|
|
title: __( 'Styling', 'woocommerce-paypal-payments' ),
|
|
|
|
component: <TabStyling />,
|
|
|
|
} );
|
2024-10-28 15:44:27 +01:00
|
|
|
|
|
|
|
return tabs;
|
|
|
|
};
|