27 lines
448 B
JavaScript
27 lines
448 B
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { useState } from '@wordpress/element';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { Tabs } from './tabs';
|
|
import './style.scss';
|
|
|
|
const Settings = ( { params } ) => {
|
|
const settingsData = window.wcSettings?.admin?.settingsPages;
|
|
|
|
if ( ! settingsData ) {
|
|
return <div>Error getting data</div>;
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<Tabs data={ settingsData } page={ params.page } />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Settings;
|