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

29 lines
475 B
JavaScript
Raw Normal View History

2024-05-29 03:41:08 +00:00
/**
* Internal dependencies
*/
import { SettingsCheckbox } from './components';
export const Content = ( { data } ) => {
const { settings } = data;
return (
<div>
{ settings.map( ( setting ) => {
switch ( setting.type ) {
case 'title':
return null;
case 'checkbox':
return (
<SettingsCheckbox
setting={ setting }
key={ setting.id }
/>
);
default:
return null;
}
} ) }
</div>
);
};