woocommerce/plugins/woocommerce-admin/client/settings/index.js

27 lines
448 B
JavaScript
Raw Normal View History

2024-05-28 23:32:10 +00:00
/**
* External dependencies
*/
import { useState } from '@wordpress/element';
/**
* Internal dependencies
*/
import { Tabs } from './tabs';
2024-05-29 00:17:39 +00:00
import './style.scss';
2024-05-28 23:32:10 +00:00
const Settings = ( { params } ) => {
const settingsData = window.wcSettings?.admin?.settingsPages;
if ( ! settingsData ) {
return <div>Error getting data</div>;
}
return (
<>
<Tabs data={ settingsData } page={ params.page } />
</>
);
};
2024-05-28 23:32:10 +00:00
export default Settings;