import { useState } from '@wordpress/element'; import { Button, Modal } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import LCPDataGrid from './LCPDataGrid'; const LCPDatasetBuilder = ({ attributes }) => { const [isOpen, setIsOpen] = useState(false); const [activeTab, setActiveTab] = useState(0); // Track the active tab return ( <> {isOpen && ( setIsOpen(false)} title={__('Dataset Builder', 'lcp-visualize')} style={{ width: '90vw', height: '90vh' }} >
{/* Tabs */}
{attributes.datasets.map((dataset, index) => ( ))}
{/* Render all the LCPDataGrid components */}
{attributes.datasets.map((dataset, index) => (
))}
)} ); }; export default LCPDatasetBuilder;