import { TableSettingsMenuAutoRefresh } from '@@/datatables/TableSettingsMenuAutoRefresh'; import { BasicTableSettings, RefreshableTableSettings, } from '@@/datatables/types'; import { SystemResourcesSettings, SystemResourcesTableSettings, } from './SystemResourcesSettings'; export interface TableSettings extends BasicTableSettings, RefreshableTableSettings, SystemResourcesTableSettings {} export function DefaultDatatableSettings({ settings, }: { settings: TableSettings; }) { return ( <> settings.setShowSystemResources(value)} /> ); function handleRefreshRateChange(autoRefreshRate: number) { settings.setAutoRefreshRate(autoRefreshRate); } }